tldr/pages/common/df.md

25 lines
568 B
Markdown
Raw Normal View History

2014-01-27 05:47:12 +00:00
# df
> Gives an overview of the filesystem disk space usage.
2021-03-30 11:23:41 +01:00
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/df-invocation.html>.
2014-01-27 05:47:12 +00:00
- Display all filesystems and their disk usage:
2014-01-27 05:47:12 +00:00
`df`
- Display all filesystems and their disk usage in human readable form:
2014-01-27 05:47:12 +00:00
`df -h`
- Display the filesystem and its disk usage containing the given file or directory:
`df {{path/to/file_or_directory}}`
2019-09-17 20:44:33 +01:00
- Display statistics on the number of free inodes:
`df -i`
- Display filesystems but exclude the specified type:
`df -x {{squashfs}} -x {{tmpfs}}`