Monday, November 26, 2012

How to view disk space in Linux

1. How to list the disk space in linux. Use df (disk filesystem) command
> df -h


Output
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda6              66G   48G   15G  77% /
udev                  3.9G  4.0K  3.9G   1% /dev
tmpfs                 1.6G  912K  1.6G   1% /run

There are many additional parameters you can use with this tool. Just try df --help to list the options.

No comments:

Post a Comment