Cari dimana letak moung device yang akan di cek
Misalnya ingin melakukan pengecekan mount untuk device /dev/sda1
mount | grep sda1
Misalnya /dev/sda1 di-mount pada /
du --max-depth=1 --human-readable / | sort --human-numeric-sort
This will list the first level of directories contained in the specified path, in order from smallest to largest. You can increase the depth past 1 to get details of the subdirectories, or change the path to specify a single directory. You can also use the short flags.
Command di atas akan menampilkan direktori pada / dengan order kapasitas pemakaian dari kecil ke besar. Parameter max-depth dapat diubah untuk mendapatkan detail subdirektori, atau ubah path ke direktori yang ingin dicek, misal ingin mengecek /home
du -d1 -h /home | sort -h
Tidak ada komentar:
Posting Komentar