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 do you move a process which is running background to foreground?
What is the use of find command in unix?
What's a command word?
What is the unix command to confirm a remote host is alive or not?
What Is the command to change a file's creation time. means one file is created at the time 15:19 then time should br changed to 14:14
What command is used to switching between users in unix?
What is the command to compare two files in unix?
What does pipe () return?
How does pipe () work?
Explain command to show the space allocation of files?
How to convert a hidden file to normal visible file?
what is shell?