Linux - check free space on filesystem

Post date: Feb 1, 2011 11:28:27 PM

How to see filesystems and space used

df command reports file system usage

Example: df –k,

Options:

-a, --all

include filesystems having 0 blocks

-B, --block-size=SIZE use SIZE-byte blocks

-h, --human-readable

print sizes in human readable format (e.g., 1K 234M 2G)

-H, --si

likewise, but use powers of 1000 not 1024

-i, --inodes

list inode information instead of block usage

-k

like --block-size=1K

-l, --local

limit listing to local filesystems

--no-sync

do not invoke sync before getting usage info (default)

-P, --portability

use the POSIX output format

--sync

invoke sync before getting usage info

-t, --type=TYPE

limit listing to filesystems of type TYPE

-T, --print-type

print filesystem type

-x, --exclude-type=TYPE

limit listing to filesystems not of type TYPE

-v

(ignored)

--help

display this help and exit

--version

output version information and exit