2024-01-07 07:43:56 -03:00
|
|
|
# df
|
|
|
|
|
|
|
|
> Display an overview of the filesystem disk space usage.
|
|
|
|
> More information: <https://www.gnu.org/software/coreutils/df>.
|
|
|
|
|
|
|
|
- Display all filesystems and their disk usage:
|
|
|
|
|
|
|
|
`df`
|
|
|
|
|
|
|
|
- Display all filesystems and their disk usage in human-readable form:
|
|
|
|
|
2024-09-27 18:41:28 +03:00
|
|
|
`df {{-h|--human-readable}}`
|
2024-01-07 07:43:56 -03:00
|
|
|
|
|
|
|
- Display the filesystem and its disk usage containing the given file or directory:
|
|
|
|
|
|
|
|
`df {{path/to/file_or_directory}}`
|
|
|
|
|
|
|
|
- Include statistics on the number of free inodes:
|
|
|
|
|
2024-09-27 18:41:28 +03:00
|
|
|
`df {{-i|--inodes}}`
|
2024-01-07 07:43:56 -03:00
|
|
|
|
|
|
|
- Display filesystems but exclude the specified types:
|
|
|
|
|
2024-09-27 18:41:28 +03:00
|
|
|
`df {{-x|--exclude-type}} {{squashfs}} {{-x|--exclude-type}} {{tmpfs}}`
|
2024-09-27 09:02:41 +03:00
|
|
|
|
|
|
|
- Display filesystem types:
|
|
|
|
|
2024-09-27 18:41:28 +03:00
|
|
|
`df {{-T|--print-type}}`
|