How to show your disk space usage in ubuntu
Posted on December 18, 2008
In fact it’s very simple,you just need to use command df to list your disk usage.
The command df displays the amount of disk space available on the file system containing each file name argument. If no file name is given, the space available on all currently mounted file systems is shown. Disk space is shown in 1K blocks by default, unless the environment variable POSIXLY_CORRECT is set, in which case 512-byte blocks are used.Below are some examples of this command.
j@j-desktop:~$ sudo df -k Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda4 6351268 3082920 2948256 52% / tmpfs 511848 0 511848 0% /lib/init/rw varrun 511848 112 511736 1% /var/run varlock 511848 0 511848 0% /var/lock udev 511848 2772 509076 1% /dev tmpfs 511848 104 511744 1% /dev/shm lrm 511848 2000 509848 1% /lib/modules/2.6.27-7-generic/volatile j@j-desktop:~$ sudo df -h Filesystem Size Used Avail Use% Mounted on /dev/sda4 6.1G 3.0G 2.9G 52% / tmpfs 500M 0 500M 0% /lib/init/rw varrun 500M 112K 500M 1% /var/run varlock 500M 0 500M 0% /var/lock udev 500M 2.8M 498M 1% /dev tmpfs 500M 104K 500M 1% /dev/shm lrm 500M 2.0M 498M 1% /lib/modules/2.6.27-7-generic/volatile j@j-desktop:~$ sudo df -h -F ext3 Filesystem Size Used Avail Use% Mounted on /dev/sda4 6.1G 3.0G 2.9G 52% / j@j-desktop:~$
The fist command display the disk usage with disk blocks.And the second command show the disk usage with Mega.
And the 3rd command,a new options “-F ext3″ indicate that only show partitions whose filesystem is linux ext3.
Popularity: 2% [?]
Related Posts:
» Filed Under Linux
Comments
Leave a Reply