To view disk space remaining: df-th
Usage:df [Options] ... [File] ...
Displays the information for each < file > file system that is located, by default showing all file systems.
The parameters that must be used for the long option are also required when using the short option.
- -a,–all includes a file system of size 0 blocks
- -b,–block-size= size block to specify < size > bytes
- -h,–human-readable file system size in an easy-to-understand format (e.g. 1K 234M 2G)
- -h,–si is similar to-H but takes 1000 of the time instead of 1024
- -i,–inodes display Inode information rather than block usage
- -K is –block-size=1k
- -l,–local only show the native file system
- –no-sync No sync action (default) before getting usage data
- -p,–portability using the POSIX output format
- –sync sync action before getting usage data
- The-t,–type= type only prints the file system information for the specified < type >
- -t,–print-type Print File system type
- -x,–exclude-type= type only prints file system information that is not a specified < type >
- -V (this option is not processed)
[[email protected] ~]# df-th file system type capacity used with available percent mount point/dev/sda1 ext4 25G 10G 14G 43%/tmpfs tmpfs 504M 0 504M 0%/dev/shm/dev/sda2 ext4 14G 164M 13G 2%/Home
How Linux views the file system (disk usage)