media file explorer download upload index folder image licenses menu widget Play Pause profile-settings more dots-two-horizontal dots-two-vertical more-vertical pending google-plus hangouts facebook instagram whatsapp spotify telegram twitter vine renren rss youtube twitch vimeo flickr dribble behance deviantart 500px steam github soundcloud skype reddit linkedin lastfm delicious stackoverflow pinterest xing flattr foursquare yelp World

Viewing Disk Usage in Ubuntu

There are several ways to view disk usage in your Linux system, and that is what we would be going over in this guide...

Out of the box, Linux provides us the df command, which is the standard Unix command used to display the amount of available disk space for file systems.

To view the disk usage information, run the dfcommand:

user@server: df
Filesystem     1K-blocks    Used Available Use% Mounted on
udev              489564       0    489564   0% /dev
tmpfs             100872    3024     97848   3% /run
/dev/vda1       25786076 3066240  21647452  13% /
tmpfs             504360       0    504360   0% /dev/shm
tmpfs               5120       0      5120   0% /run/lock
tmpfs             504360       0    504360   0% /sys/fs/cgroup
tmpfs             100872       0    100872   0% /run/user/0

This above is measured in bytes, to get a human readable format, you use df with the -h option, so, df -h gives us:

user@server: df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            479M     0  479M   0% /dev
tmpfs            99M  3.0M   96M   3% /run
/dev/vda1        25G  3.0G   21G  13% /
tmpfs           493M     0  493M   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           493M     0  493M   0% /sys/fs/cgroup
tmpfs            99M     0   99M   0% /run/user/0

It shows you the filesystem, its size, how much space is used, how much is available, how much percentage is being used (used percentage), and the filesystem the device is mounted on.

The output will look differently depending on the types of disks and mount points on your system, for example, /dev/vda1 is my disk storage, it might be different for you, e.g you might see /dev/sda and so on.