Sunday, January 22, 2012
Saturday, January 21, 2012
How to see disk space utilization in Linux
Listing size and % usage of each partition.
[root@288832-web3 ~]# df -H
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 279G 265G 0 100% /
/dev/sda2 2.1G 355M 1.7G 18% /tmp
/dev/sda1 104M 26M 73M 26% /boot
tmpfs 13G 0 13G 0% /dev/shm
------------------------------------------------------------------
Find How Much Disk Space Is Being Used Show Display
Login as root
then cd /
then execute: du -hc --max-depth=1
Output:
[root@hostname /]# du -hc --max-depth=1
0 ./net
1.6G ./usr
16K ./lost+found
515M ./proc
8.0K ./misc
648M ./var
112K ./dev
8.0K ./mnt
66M ./lib
8.0K ./selinux
7.3M ./bin
77M ./root
4.2M ./boot
28K ./tmp
2.7M ./backups
20M ./sbin
8.0K ./media
8.0K ./srv
0 ./sys
43M ./etc
42M ./home
8.0K ./opt
3.0G .
3.0G total
Taken from: http://www.wallpaperama.com/forums/linux-command-to-find-how-much-disk-space-is-being-used-show-display-t713.html
[root@288832-web3 ~]# df -H
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 279G 265G 0 100% /
/dev/sda2 2.1G 355M 1.7G 18% /tmp
/dev/sda1 104M 26M 73M 26% /boot
tmpfs 13G 0 13G 0% /dev/shm
------------------------------------------------------------------
Find How Much Disk Space Is Being Used Show Display
Login as root
then cd /
then execute: du -hc --max-depth=1
Output:
[root@hostname /]# du -hc --max-depth=1
0 ./net
1.6G ./usr
16K ./lost+found
515M ./proc
8.0K ./misc
648M ./var
112K ./dev
8.0K ./mnt
66M ./lib
8.0K ./selinux
7.3M ./bin
77M ./root
4.2M ./boot
28K ./tmp
2.7M ./backups
20M ./sbin
8.0K ./media
8.0K ./srv
0 ./sys
43M ./etc
42M ./home
8.0K ./opt
3.0G .
3.0G total
Taken from: http://www.wallpaperama.com/forums/linux-command-to-find-how-much-disk-space-is-being-used-show-display-t713.html
Subscribe to:
Posts (Atom)