My Web Hosting Providers  

Web Hosting Reviews

Web Hosting Ratings

Web Hosting Directory

Since 2004

Best Web Hosting Provider of the Month []

FatCow $88 Plan for $66 only - Salaalive Web Hosting Directory and Web Hosting Reviews

Home | Web Hosting Reviews - Blog Here | Contact Us | Sitemap | Make MyWebHostingProviders my homepage

 

Web Hosting Articles Center        Personal Web Hosting Articles        Small Business Web Hosting Articles       Web Hosting Search

 

How to Check the Disk Space on a Linux Server

Keeping an eye on disk space usage is critical to keeping a server healthy. One of the last things a system admin wants is a system to run out of disk space.

So, how does a Linux System Administrator check his server for used and available disk space? Use Putty or your favorite SSH client and logon to your server. Switch to the root user once you are logged.Then execute the following command:

root@server [~]# df

This command will show you the disk space among your partitions in KB size.

Sample Output:

Filesystem            1K-blocks        Used           Available     Use%      Mounted on

/dev/hda3               37167560       14344212     20935312     41%           /

/dev/hda1               256667           27790          215625         12%          /boot

/dev/hdc1               38464340       16535548     19974888     46%           /backup

none                      766696           0                 766696          0%           /dev/shm

/dev/tmpMnt           806288           17416          747912          3%           /tmp

If you want to see your server disk space in Gigabyte data change the command as shown in our next example:

root@server [~]# df -h

Sample Output:

Filesystem              Size         Used       Avail     Use%      Mounted on

/dev/hda3                36G          14G        20G        41%             /

/dev/hda1                251M        28M        211M      12%            /boot

/dev/hdc1                37G          16G        20G        46%            /backup

none                       749M          0          749M       0%             /dev/shm

/dev/tmpMnt            788M        18M        731M       3%             /tmp

I make it a habit to check servers whenever I log into one via SSH. Next to using the "top" command, checking the disk space is one of my high priority items.

  Bookmark and Share

 

Our Partners : www.SalaAlive.com - www.WebHostingReviewCompany.com

Copyright © 2010 All Rights Reserved.