2014-01-27 11:17:12 +05:30
|
|
|
# df
|
|
|
|
|
2020-10-03 16:38:06 +02:00
|
|
|
> Gives an overview of the filesystem disk space usage.
|
2021-04-01 17:54:26 +02:00
|
|
|
> More information: <https://www.gnu.org/software/coreutils/df>.
|
2014-01-27 11:17:12 +05:30
|
|
|
|
2020-10-03 16:38:06 +02:00
|
|
|
- Display all filesystems and their disk usage:
|
2014-01-27 11:17:12 +05:30
|
|
|
|
|
|
|
`df`
|
|
|
|
|
2021-08-15 19:59:09 +02:00
|
|
|
- Display all filesystems and their disk usage in human-readable form:
|
2014-01-27 11:17:12 +05:30
|
|
|
|
|
|
|
`df -h`
|
2017-11-12 19:19:53 +01:00
|
|
|
|
2020-10-03 16:38:06 +02:00
|
|
|
- Display the filesystem and its disk usage containing the given file or directory:
|
2017-11-12 19:19:53 +01:00
|
|
|
|
2019-02-11 19:00:49 +01:00
|
|
|
`df {{path/to/file_or_directory}}`
|
2019-09-17 21:44:33 +02:00
|
|
|
|
|
|
|
- Display statistics on the number of free inodes:
|
|
|
|
|
|
|
|
`df -i`
|
2020-06-03 21:31:47 +08:00
|
|
|
|
2021-04-20 20:15:58 +02:00
|
|
|
- Display filesystems but exclude the specified types:
|
2020-06-03 21:31:47 +08:00
|
|
|
|
|
|
|
`df -x {{squashfs}} -x {{tmpfs}}`
|