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 is awk used for?
What is the search command in unix?
How to get the operating system's information in unix?
How to find $ai_serual resolved path by using unix
How we will execute previous command in vi editor?
What is the unix command to confirm a remote host is alive or not?
Why is awk called awk?
What is awk good for?
What is the different between UNIX command and UNIX shell script?
What is the pipe command?
what are the different commands used to view the contents of a file?
How to see unused port number in Solaris?