Contents
df – report file system disk space usage
Options
- –help: Display Information of df Command.
- -h: Show Disk Space Usage in Human Readable Format.
- -T: Display File System Type.
–help: Display Information of df Command.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
$ df --help Usage: df [OPTION]... [FILE]... Show information about the file system on which each FILE resides, or all file systems by default. Mandatory arguments to long options are mandatory for short options too. -a, --all include dummy file systems -B, --block-size=SIZE scale sizes by SIZE before printing them. E.g., '-BM' prints sizes in units of 1,048,576 bytes. See SIZE format below. --total produce a grand total -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 file systems --no-sync do not invoke sync before getting usage info (default) --output[=FIELD_LIST] use the output format defined by FIELD_LIST, or print all fields if FIELD_LIST is omitted. -P, --portability use the POSIX output format --sync invoke sync before getting usage info -t, --type=TYPE limit listing to file systems of type TYPE -T, --print-type print file system type -x, --exclude-type=TYPE limit listing to file systems not of type TYPE -v (ignored) --help display this help and exit --version output version information and exit |
-h: Show Disk Space Usage in Human Readable Format.
1 2 3 4 5 6 7 8 9 10 |
$ df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 7.1G 5.9G 846M 88% / none 4.0K 0 4.0K 0% /sys/fs/cgroup udev 1.2G 4.0K 1.2G 1% /dev tmpfs 246M 952K 245M 1% /run none 5.0M 0 5.0M 0% /run/lock none 1.2G 144K 1.2G 1% /run/shm none 100M 8.0K 100M 1% /run/user Shared 350G 189G 162G 54% /media/sf_Shared |
specific path
1 2 3 |
$ df -h /home Filesystem Size Used Avail Use% Mounted on /dev/sda1 7.1G 5.9G 846M 88% / |
-T: Display File System Type.
1 2 3 4 5 6 7 8 9 10 |
$ df -T Filesystem Type 1K-blocks Used Available Use% Mounted on /dev/sda1 ext4 7350760 6088892 865428 88% / none tmpfs 4 0 4 0% /sys/fs/cgroup udev devtmpfs 1247416 4 1247412 1% /dev tmpfs tmpfs 251620 952 250668 1% /run none tmpfs 5120 0 5120 0% /run/lock none tmpfs 1258092 144 1257948 1% /run/shm none tmpfs 102400 8 102392 1% /run/user Shared vboxsf 366090236 197269824 168820412 54% /media/sf_Shared |