How would you find the size of a file or directory?
The du command, standing for "disk usage", can be employed to ascertain the size of files and directories. du -sh filename would display the size of a file, while du -sh directory_name reveals the total size of a directory. The -s provides a summary and -h displays sizes in a human-readable format (like KB, MB). It's an invaluable command for monitoring space utilisation and managing storage effectively.
Is This Answer Correct ? | 0 Yes | 0 No |
what are the different hardwares available?
what is the advaantage of each user having its own copy of the shell?
0 Answers BMC, CNS, DELL, Infosys,
What does awk stand for?
What is the output of : $ ps-e $ ps-a commands
Is grep faster than awk?
what does the job command do?
What is grep command in unix with examples?
how many internal commands is there in UNIX?
What is the use of tee command?
What are filter commands in unix?
fork in unix ?
How to copy multiple files and directories into some other directory?