Answer Posted / hr@tgksolutions.com
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 |
Post New Answer View All Answers
How do I search for a file in unix command?
How can we use grep command in unix?
Which command will print your home directory on screen?
What are the dos commands?
What is s and g in sed command?
Who invented grep?
What is the use of the tee command?
What is the pipe command?
Which unix command lists files/folders in alphabetical order?
what is the advaantage of each user having its own copy of the shell?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
Explain ‘system calls’ with respect to unix commands?
Explain command to display different lines that are found when compare two files?
What difference between cmp and diff commands?
Who command in unix operating system?