Debian Disk Usage Stats

He has delusions of adequacy.

Debian Disk Usage Stats

Postby ShiftPoint » Sun Jul 05, 2009 8:51 pm

A few commands that are helpful:

Code: Select all
df -h


Give you drive usage percentages:

Code: Select all
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda3              72G   67G  1.1G  99% /
/dev/hda1              92M  8.8M   78M  11% /boot
/dev/hdb1             459G  188G  248G  44% /home/drive2


Depending on your user permissions you may want to use sudo with the next command so it can read the directory contents:

Code: Select all
sudo du -ah | sort -rn

1.3M    ./icore-test/usr/lib/i686/cmov/libcrypto.so.0.9.8
1.3M    ./icore-test/usr/lib/i686/cmov
1.3M    ./icore-test/usr/lib/i686
1.3G    ./drive2/backup/bs940625/20080610-12150_F_.bak
1.3G    ./drive2/backup/bs940625/20080609-10100_F_.bak
1.3G    ./drive2/backup/bs940625/20080602-10100_F_.bak
1.3G    ./drive2/backup/bs940625/20080526-10100_F_.bak
1.3G    ./drive2/backup/bs690556/20080311-21000_F_.bak
User avatar
ShiftPoint
 
Posts: 70
Joined: Sun Jul 05, 2009 4:52 pm
Location: Pickerington, OH

Return to Debian

Who is online

Users browsing this forum: No registered users and 0 guests