amazon 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.

Enjoy!

Related Post(s)

  • How To Access Windows 10 Drive/Folder in VirtualBox

    To access Windows drive or folder in your Guest OS, you first of all, install VirtualBox guest utilities: sudo apt-get install virtualbox-guest-utils You then Add a shared folder by going into: Setti

  • Send Mail with Attachment Using Mutt in GNU/Linux

    Mutt is a powerful text-based mail client for Unix/Linux operating systems. It features color support, message threading, MIME support...

  • Using Pageant To Automatically Authenticate SSH key in Putty

    I can't count how many times I have typed my ssh key passphrase whenever my ssh connection times out, it is so annoying and repetitive. Well, thanks to the putty pageant, you can do that seamlessly.

  • Installing WP-CLI In a GNU/Linux Server

    WP-CLI is a command-line interface for WordPress. It can also be used with ClassicPress, as they are no differences in their usage, maybe just minimal if you are updating or downloading new ClassicPr

  • How To Send Mail To Multiple Addresses Using (mailx)

    In this guide, you'll learn a couple of ways you can send mail to multiple addresses using mailx. mailx is a utility program for sending and receiving mail. I assume you already have mailx command, i

  • Mounting and Unmounting Cloud Storage With (Rclone) in GNU/Linux

    Ever wondered if you could mount your preferred cloud storage as a virtual drive on your system? Thanks to Rclone, you can mount and access different kinds of cloud storage from a file manager, I'll