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 |
Give command that will make the file "run.sh" executable?
Is it inbetween or in between?
what are filters?
Write a command to display a file’s contents in various formats?
Who command in unix?
What is pid?
What is the protocol for PING command?
What is an Unix command to convert HEX value to ASCII value located in any flat file.
if we create a file, in that 10 rows(means 1,2,....9,10 like). i want 7 row exactly, which command use in unix? plz send this question.
How do you copy a directory with many files and folders into another directory?
The rm command removes links to file. What does this mean? How then is a file deleted from the file system?
what is the difference between SED and GREP ? Which one is more better and why?