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 the use of touch command in there?
What command is used to check the current users?
how to make IGNITE-BACKUP in HP-UX?
What are bash commands?
What is the difference between pipe (|) and tee command in unix
what these two commands prints "echo test","cat test"?
What command will bring user back to their home directory in UNIX?
What Command is used to make a directory?
What does #!/ Bin sh do?
fork in unix ?
How would you find the size of a file or directory?
Which command is used to find whether the system is 32 bit or 64 bit?