Feeds:
Posts
Comments

Archive for October 2nd, 2007

To check the disk space usage in Ubuntu, you can use.

  • du estimate file space usage

  • df report file system disk space usage

 

Note:

-s, –summarize display only a total for each argument

-h, –human-readable print sizes in human readable format (e.g., 1K 234M 2G)

-c, –total produce a grand total

 

 

Check total disk usage (summarized)

taufanlubis@zyrex:~$ du -sh /media/hda5

12G /media/hda5

 

Check total directory usage (summarized)

taufanlubis@zyrex:~$ du -sh /media/hda5/New\ download/

839M /media/hda5/New download/

taufanlubis@zyrex:~$

 

Check directory usage

taufanlubis@zyrex:/media/hda5/New download/drupal$ du -ch

592K ./drupal-5.1/includes

64K ./drupal-5.1/misc/farbtastic

424K ./drupal-5.1/misc

88K ./drupal-5.1/modules/aggregator

56K ./drupal-5.1/modules/block

32K ./drupal-5.1/modules/blog

40K ./drupal-5.1/modules/blogapi

72K ./drupal-5.1/modules/book

24K ./drupal-5.1/modules/color/images

88K ./drupal-5.1/modules/color

112K ./drupal-5.1/modules/comment

48K ./drupal-5.1/modules/contact

48K ./drupal-5.1/modules/drupal

80K ./drupal-5.1/modules/filter

80K ./drupal-5.1/modules/forum

32K ./drupal-5.1/modules/help

24K ./drupal-5.1/modules/legacy

56K ./drupal-5.1/modules/locale

48K ./drupal-5.1/modules/menu

152K ./drupal-5.1/modules/node

32K ./drupal-5.1/modules/path

24K ./drupal-5.1/modules/ping

56K ./drupal-5.1/modules/poll

56K ./drupal-5.1/modules/profile

80K ./drupal-5.1/modules/search

48K ./drupal-5.1/modules/statistics

264K ./drupal-5.1/modules/system

72K ./drupal-5.1/modules/taxonomy

32K ./drupal-5.1/modules/throttle

32K ./drupal-5.1/modules/tracker

56K ./drupal-5.1/modules/upload

136K ./drupal-5.1/modules/user

40K ./drupal-5.1/modules/watchdog

2.0M ./drupal-5.1/modules

16K ./drupal-5.1/profiles/default

24K ./drupal-5.1/profiles

40K ./drupal-5.1/scripts

16K ./drupal-5.1/sites/all

16K ./drupal-5.1/sites/default

40K ./drupal-5.1/sites

72K ./drupal-5.1/themes/bluemarine

48K ./drupal-5.1/themes/chameleon/marvin

104K ./drupal-5.1/themes/chameleon

64K ./drupal-5.1/themes/engines/phptemplate

72K ./drupal-5.1/themes/engines

80K ./drupal-5.1/themes/garland/color

120K ./drupal-5.1/themes/garland/images

72K ./drupal-5.1/themes/garland/minnelli/color

104K ./drupal-5.1/themes/garland/minnelli

408K ./drupal-5.1/themes/garland

288K ./drupal-5.1/themes/pushbutton

952K ./drupal-5.1/themes

4.2M ./drupal-5.1

39M .

39M total

taufanlubis@zyrex:/media/hda5/New download/drupal$

 

Check disk space available

taufanlubis@zyrex:~$ df -h

Filesystem Size Used Avail Use% Mounted on

/dev/sda4 12G 5.0G 6.2G 45% /

varrun 236M 128K 235M 1% /var/run

varlock 236M 0 236M 0% /var/lock

procbususb 236M 136K 235M 1% /proc/bus/usb

udev 236M 136K 235M 1% /dev

devshm 236M 0 236M 0% /dev/shm

lrm 236M 33M 203M 15% /lib/modules/2.6.20-16-generic/volatile

/dev/sda5 15G 12G 2.9G 81% /media/hda5

taufanlubis@zyrex:~$

 

taufanlubis@zyrex:~$ df -h /media/hda5

Filesystem Size Used Avail Use% Mounted on

/dev/sda5 15G 12G 2.9G 81% /media/hda5

taufanlubis@zyrex:~$

Read Full Post »

Follow

Get every new post delivered to your Inbox.

Join 70 other followers