Saturday, May 16, 2009

Check disk usage in Linux

If your Linux system is anything like mine, there are regularly partitions being mounted and unmounted and space always seems to be an issue. To quickly see what partitions are mounted to the system, what their mount points are, and what their capacity, amount used, and amount left are use this command:
df -h
This will list all of the above mentioned information in a nice and easy to understand manner. The -h option makes the the size information human readable. Without it, you get the sizes in the number of blocks. With it, you get the size in kilobytes, megabytes, etc.

No comments:

Post a Comment