1 |
df -h --total |
1 |
sudo du -h /var |
To get the summary of a grand total disk usage size of an directory use the option “-s” as follows.
1 2 |
sudo du -sh /var sudo du -shc /var/* |
Option to use the –max-depth switch and specify the subdirectories level
1 |
sudo du -h --max-depth=1 /var |
5 largest directories
1 |
sudo du -h /var/ | sort -rh | head -5 |
https://stackoverflow.com/questions/16054112/disk-space-in-linux-server
https://linuxize.com/post/how-get-size-of-file-directory-linux/
ป้ายกำกับ:Directory, Disk Space, Size