Wednesday, June 30, 2010

linux df command

If you want to see info about partition usage in Linux, the df command is handy tool.
The df command by itself shows you the partition size and usage in "blocks" of each mounted filesystem:


$ df





But that form of the command also shows you temporary filesystems.

The following form of the command shows the mounted filesystems in a more human-readable format (in megabytes and gigabytes), showing filesystem "Type," and excluding the temporary filesystems:


$ df -hT -x tmpfs


No comments: