Linux Command To Find How Much Disk Space Is Being Used Show Display
RegisterLogin
Webune Forums » Linux Hosting » Linux Command To Find How Much Disk Space Is Being Used Show Display
Linux Command To Find How Much Disk Space Is Being Used Show Display
Post Description: Linux Command To Find How Much Disk Space Is Being Used Show Display
Tags: Linux, Command, To, Find, How, Much, Disk, Space, Is, Being, Used, Show, Display
This Post Was Posted On Dec 06, 2009 By pinguin #816
Post Description: Linux Command To Find How Much Disk Space Is Being Used Show Display
Tags: Linux, Command, To, Find, How, Much, Disk, Space, Is, Being, Used, Show, Display
This Post Was Posted On Dec 06, 2009 By pinguin #816
Linux Command To Find How Much Disk Space Is Being Used Show Display by pinguin
NOTE: you must be logged in as root
Code:
cd /
Code:
du -hc --max-depth=1
this will show you something like this:
Code:
[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
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
and addition, you could also use these commands to show you disk space being use by your sytem on the linux or unix shell command:
Code:
cd /
df -H
or
df -H
Code:
cd /
df -sh *
df -sh *
you will see something like this:
Code:
[root@hostname/]# df -H
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
387G 2.1G 365G 1% /
/dev/hda1 104M 11M 89M 11% /boot
tmpfs 265M 0 265M 0% /dev/shm
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
387G 2.1G 365G 1% /
/dev/hda1 104M 11M 89M 11% /boot
tmpfs 265M 0 265M 0% /dev/shm
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
jairo
#1038 1
will this also work in linux command to determine how much space is being used?
Apr 19, 2009 Reply Report abuse
thanig
#1037 2
got a spelling issue:
your sytem
otherwise, helpful.
your sytem
otherwise, helpful.
Oct 18, 2007 Reply Report abuse
lili
#1036 3
good one good one good one
Mar 19, 2007 Reply Report abuse
Leave Your Comments...
©2011 Webune Forums - Mon Dec 19, 2011 12:00 am
Powered by: Webune Forums V3
Powered by: Webune Forums V3