1.

Which command is used to check the size of file or directory?

Answer»

The command USED to check the size of the file or DIRECTORY is “du”. Here “du” stands for disk usage that is used to check information of disk usage of files and directories on a machine. It is also used to DISPLAY files and directory SIZES in a RECURSIVE manner. 

Example:  
$ du -sh /var/log/*
1.8M /var/log/anaconda
384K /var/log/audit
4.0K /var/log/boot.log
0 /var/log/chrony
4.0K /var/log/cron
4.0K /var/log/maillog
64K /var/log/messages 



Discussion

No Comment Found