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 |
Will rm -r* removes hidden files?
What does the command '$ls | wc –l > file1' do?
What are the differences among a system call, a library function, and a unix command?
How do I find previous commands in unix?
what is the use of uniq commmand?
A file has 1000 lines and i want to display only 1st line how to do it? pls ..tel me
What is a Unix signal, and how do you handle them?
What's a command word?
what is the significance of "su" command?
what is the difference between Touch & cat command
what does a process mean?
How to setup Disk space as well as memory in solaris10?