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
Which unix command lists files/folders in alphabetical order?
How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?
Using unix command how to display no of records in oracle?
What is the command to compare two files in unix?
How do I run a bash script?
Explain how to use grep command to list find the records of a file containing 10 different strings?
How do I clear my terminal history?
What is the comma to display different lines that are found when compare two files?
Write a command that will display files in the current directory, in a colored, long format.
What is rmdir command?
What does the command '$ls | wc –l > file1' do?
Can you explain a little bit about command substitution?
Who command in unix?
What are the unix commands?
How does pipe () work?