type in your query to search makeyougohmm
Things that ... make you go hmmtechnology music video art news reviews and muse on the web

December 20, 2006

How to check hard disk size in Linux from shell

How To — by TDavid @ 10:23 am PST
F = please no more posts like thisD = not among your best stuffC = average postB = good post, I liked itA = great post, please create more like this (1 votes, average: 5 out of 5)
Loading ... Loading ...

To find the amount of hard disk space and what’s free via the Linux shell use the df command. Here are a few examples:

Use df command to check hard disk size

I have an 80 GB hard drive with only 4% being used. Another check:

Use df command to check hard disk size

On this server there is a 20GB primary drive (see 17691725) that 24% is being used and a backup 40GB drive where 17% is being used for storing shoutcast content files.

Use df command to check hard disk size

An 8GB hard drive with 16% being used.

Conversion
1024 bytes = 1KB
1024 KB = 1 MB (Megabyte)
1024 MB = 1 GB (Gigabyte)
1024 GB = 1 TB (Terabyte)

EXAMPLE. 80GB hard drive = 83,886,080 KB

RSS Feed comments for this post 3 Comments »

  1. For linux, df -h is better. It writes it in “easy” viewable for humans. :)

    Comment by darkmoon — December 20, 2006 @ 11:50 am PST

  2. I’m a bytes kind of geek, I guess lol, good point on that modifier though, darkmoon, of which there are several. Where you been, mon? Holday crashing?

    Comment by TDavid — December 20, 2006 @ 12:28 pm PST

  3. I’m around. Just not ircing. Yup. holiday crashing. :)

    Comment by darkmoon — December 20, 2006 @ 1:09 pm PST


TrackBack URI: http://www.makeyougohmm.com/20061220/4063/trackback/

Leave a comment


By leaving a comment you consent to the Official Hmm Comment Policy

Return Home


Copyright 2003-2008 KMR Enterprises All Rights Reserved