Linux Command To Find How Much Disk Space Is Being Used Show Display

Mobile
feeds
Welcome Login | Register

Linux Command To Find How Much Disk Space Is Being Used Show Display
Reply Your Comments:
Click this button if you are interested in replying to this topic and leave your comments
Sent To Friend
CLick this button if you want to send this page to a friend.
Subsribe To Rss Feeds
Subscribe to RSS
CLick this button if you want to subscribe to this RSS Feed. You can use your browsers feeds burners if you have mozilla or internet explorer 7 or higher and keep up with updates.
  Forums Index
      » Linux Hosting Forums
        » » 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 Linux Hosting
Post Tags:
This Post Has Been Viewed 6250 Times Since Sat Jan 13, 2007 5:14 pm Author pinguin with 3 replies
Linux Command To Find How Much Disk Space Is Being Used Show Display
Advertise On This Page




a simple linux shell command to show you how much space a directory is using is helpful in maitaining a good disk managment. Lately i wanted to find out how much space i had left in my dedicated server, well to display or to show how much is being used, this is the command you can send:

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


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

     Code:
cd /
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



Leave Your Comments

Share:   Subscribe - Keep Up With This Topic
You can use this HTML code to put it on your website to show your friends this wallpaper. Use this code on your profile like myspace, friendster, Facebook or others. Just Copy and Paste it in your HTML on your websites
URL:
To embed this topic, just copy the code from the "Embed" box. Once you've copied the code, just paste it into your website or blog to embed it.
Embed:
BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on your Posts and Replies on your forums
Fourms BBCODE:
Links Related to : Linux Command To Find How Much Disk Space Is Being Used Show Display
Add Link:
No Links Have Been Added To This Topic

Comments and replies About Linux Command To Find How Much Disk Space Is Being Used Show Display
:: 1 :: Reply #945 Reply By lili On Mon Mar 19, 2007 11:37 pm
lili:
good one good one good one
:: 2 :: Reply #24713 Reply By thanig On Thu Oct 18, 2007 5:33 am
thanig:
got a spelling issue:
your sytem

otherwise, helpful.
:: 3 :: Reply #90597 Reply By Lantay77 On Mon Jan 19, 2009 8:08 am
Lantay77:
thanks a bunch!

lantay77 - my personal portfolio
trayiel - flash based mmorpg!