Cara mengecek kapasitas usage disk dalam folder pada linux

Bagaimana cara mengetahui /cek besarnya kapasitas data dalam suatu folder di linux?

Langsung saja masuk root SSH:

[root@server1 /]# du -hs home/
29G home/
[root@server1 /]#

Maka yang ditampilkan tersebut di atas yaitu misalnya dilakukan pengecekan pada folder home, hasil pengecekannya sebesar 29G

Beberapa contoh command-command lainnya sbb:

du -h –max-depth=1 /var/log

1.3M    /var/log/dcpumon
1.2M    /var/log/bandwidth
3.6M    /var/log/sa
376K    /var/log/nginx
92M     /var/log

df -h

Filesystem           Size    Used    Avail    Use%    Mounted on
/dev/sda1            25G     20G     4.1G    83%      /
none                 256M    0       256M    0%       /dev/shm
/usr/tmpDSK          2.0G    153M    1.7G    9%       /tmp

du -h –max-depth=1 /home

2.4G    /home/virtfs
3.6G    /home

du -h –max-depth=1 /usr/local/apache/domlogs

4.0K    /usr/local/apache/domlogs/nxxx
92K     /usr/local/apache/domlogs/txxx
4.0K    /usr/local/apache/domlogs/axxx
4.0K    /usr/local/apache/domlogs/cxxx
4.0K    /usr/local/apache/domlogs/ixxx
4.0K    /usr/local/apache/domlogs/txxx
4.0K    /usr/local/apache/domlogs/txxx
4.0K    /usr/local/apache/domlogs/mxxx
4.0K    /usr/local/apache/domlogs/dxxx
4.0K    /usr/local/apache/domlogs/bxxx
4.0K    /usr/local/apache/domlogs/cxxx
4.0K    /usr/local/apache/domlogs/txxx
4.0K    /usr/local/apache/domlogs/hxxx
4.0K    /usr/local/apache/domlogs/txxx
4.0K    /usr/local/apache/domlogs/axxx
4.0K    /usr/local/apache/domlogs/txxx
3.2M    /usr/local/apache/domlogs

 

 

 

Tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *