2014-01-27 05:47:12 +00:00
|
|
|
# df
|
|
|
|
|
2020-10-03 15:38:06 +01:00
|
|
|
> Gives an overview of the filesystem disk space usage.
|
2021-04-01 16:54:26 +01:00
|
|
|
> More information: <https://www.gnu.org/software/coreutils/df>.
|
2014-01-27 05:47:12 +00:00
|
|
|
|
2020-10-03 15:38:06 +01:00
|
|
|
- Display all filesystems and their disk usage:
|
2014-01-27 05:47:12 +00:00
|
|
|
|
|
|
|
`df`
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Display all filesystems 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
|
|
|
|
2020-10-03 15:38:06 +01:00
|
|
|
- Display the filesystem 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
|
|
|
|
2021-04-20 19:15:58 +01:00
|
|
|
- Display filesystems but exclude the specified types:
|
2020-06-03 14:31:47 +01:00
|
|
|
|
|
|
|
`df -x {{squashfs}} -x {{tmpfs}}`
|