2024-01-07 07:43:56 -03:00
|
|
|
# df
|
|
|
|
|
|
|
|
> Display an overview of the filesystem disk space usage.
|
2025-01-18 18:45:33 +05:30
|
|
|
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/df-invocation.html>.
|
2024-01-07 07:43:56 -03:00
|
|
|
|
|
|
|
- Display all filesystems and their disk usage:
|
|
|
|
|
|
|
|
`df`
|
|
|
|
|
|
|
|
- Display all filesystems and their disk usage in human-readable form:
|
|
|
|
|
2025-03-07 13:45:30 +02: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:
|
|
|
|
|
2025-03-07 13:45:30 +02:00
|
|
|
`df {{[-i|--inodes]}}`
|
2024-01-07 07:43:56 -03:00
|
|
|
|
|
|
|
- Display filesystems but exclude the specified types:
|
|
|
|
|
2025-03-07 13:45:30 +02:00
|
|
|
`df {{[-x|--exclude-type]}} {{squashfs}} {{[-x|--exclude-type]}} {{tmpfs}}`
|
2024-09-27 09:02:41 +03:00
|
|
|
|
|
|
|
- Display filesystem types:
|
|
|
|
|
2025-03-07 13:45:30 +02:00
|
|
|
`df {{[-T|--print-type]}}`
|