Thursday, June 18, 2009

Hard drive usage status from linux

How to get the hard disk usage status from linux OS?

Simple command df -h

Output will be

Filesystem Size Used Avail Use% Mounted on
simfs 4.0G 1.4G 2.7G 34% /

here -h for human readable format. Otherwise only df command with -h for disk space will display in below format

Filesystem 1K-blocks Used Available Use% Mounted on
simfs 4194304 1422100 2772204 34% /


No comments:

Get function name programaticaly - Python

This little piece of code will help you to get the function name programatically. This is very helpful when you are implementing the debug...