System Monitoring and Management – Part 1: Hard Disk Usage.

By | October 13, 2016

To check the hard disk space (free and used) of your PC’S hard disk. Open the system tray and type Disk Usage Analyzer (for Ubuntu) or any such name in different distro.

 

disc_search_tray

 

On the disk usage analyzer in Ubuntu you should be able to see a hard drive with an Ubuntu logo and then a graphic representation of the amount of free and total space of the drive.

 

disk usage ubuntu

 

Here my hard drive (code name ‘pandora‘) has a total of 94.6GB and I’ve used about 73.6GB. And below is my external hard drive of 149.6GB (143.2GB used already).

 

Using the command-line:

The df command displays the amount of disk space available on the file system. If  no file name is given, the space available on all currently mounted file systems is shown.

 

df_command

 

df

Or;

df -h

 

df_h_command

 

The first column of the output is the device (files system), column 2: is the total size of the device, column 3: is the used amount of memory, column 4: the available memory space, column 5: the percentage usage and column 6: the location where the device is mounted. The -h option is used to make the output display in the form of megabytes (MB) and gigabytes (GB). From the command above it shows that Linux is installed as the /dev/sda6 file system, so to see the memory allocation we can use the command;

df -h /dev/sda6

 

df_h_dev_command

 

 

 

Happy Linux’NG!

 

 

 

 

 

 


NEVER MISS AN UPDATE




I agree to have my personal information transfered to MailChimp ( more information )

Join over 10,000 visitors to receive Open Source tips, trick, news, tutorials, programming and more.

We hate spam. Your email address will not be sold or shared with anyone else.

ALEXANDER OMOROKUNWA
MUST READ  A new vantage point for Canonical's CEO

Tell us what you think