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 |
Write a command to kill the last background job?
who to change the duplex setting of network interface in command line
What is the functions of zambie process?
Enlist some filename manipulation commands in unix.
Write a grep (or grep) command that selects the lines from a file that have exactly three characters.
to list a particular line in the file
1-how will you display a file whose name is starting with '- '? 2-how will you add a patten at end of every line in vi editor?
What is pipe command in unix?
What is the use of the command 'ls -x chapter[1-5]' ?
Which unix command lists files/folders in alphabetical order?
what will be the output of ls ~/..
How does a user get the current date, time in UNIX?