2014-01-27 05:47:12 +00:00
|
|
|
# df
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
> Gives an overview of the file system disk space usage.
|
2014-01-27 05:47:12 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Display all file systems and their disk usage:
|
2014-01-27 05:47:12 +00:00
|
|
|
|
|
|
|
`df`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Display all file systems and their disk usage in human readable form:
|
2014-01-27 05:47:12 +00:00
|
|
|
|
|
|
|
`df -h`
|
2017-11-12 18:19:53 +00:00
|
|
|
|
2019-02-11 18:00:49 +00:00
|
|
|
- Display the file system and its disk usage containing the given file or directory:
|
2017-11-12 18:19:53 +00:00
|
|
|
|
2019-02-11 18:00:49 +00:00
|
|
|
`df {{path/to/file_or_directory}}`
|
2019-09-17 20:44:33 +01:00
|
|
|
|
|
|
|
- Display statistics on the number of free inodes:
|
|
|
|
|
|
|
|
`df -i`
|
2020-06-03 14:31:47 +01:00
|
|
|
|
|
|
|
- Display file systems but exclude the specified type:
|
|
|
|
|
|
|
|
`df -x {{squashfs}} -x {{tmpfs}}`
|