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 |
How to know a process is a zombie or orphan process?
What is the syntax of grep command and what is its use?
Give Command that will change the name of a directly from paypal to eBay
How do you change file permissions and ownership in Unix?
What is the general format of unix command syntax?
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
How are UNIX file permissions represented?
What is the significance of the 'tee' command?
How do you copy a directory with many files and folders into another directory?
What is difference between grep and find command in unix?
How to find and replace the below command?
Explain command to display different lines that are found when compare two files?