1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages.zh/linux/df.md

29 lines
624 B
Markdown
Raw Permalink Normal View History

2025-01-14 13:51:35 +08:00
# df
> 显示文件系统磁盘空间使用情况的概览。
> 更多信息:<https://www.gnu.org/software/coreutils/manual/html_node/df-invocation.html>.
2025-01-14 13:51:35 +08:00
- 显示磁盘使用情况:
`df`
- 以可读的形式显示磁盘使用情况:
`df {{[-h|--human-readable]}}`
2025-01-14 13:51:35 +08:00
- 显示给定文件或目录的磁盘使用情况:
`df {{路径/到/文件或目录}}`
- 包括空闲 inode 数量的统计信息:
`df {{[-i|--inodes]}}`
2025-01-14 13:51:35 +08:00
- 显示文件系统但排除指定的类型:
`df {{[-x|--exclude-type]}} {{squashfs}} {{[-x|--exclude-type]}} {{tmpfs}}`
2025-01-14 13:51:35 +08:00
- 显示文件系统类型:
`df {{[-T|--print-type]}}`