Files
tldr/pages.zh/linux/quotacheck.md

29 lines
821 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# quotacheck
> 扫描文件系统的磁盘使用情况;创建、检查和修复配额文件。
> 最好在关闭配额的情况下运行配额检查,以防止对配额文件造成损坏或丢失。
> 更多信息:<https://manned.org/quotacheck>。
- 检查所有已挂载的非NFS文件系统的配额
`sudo quotacheck --all`
- 强制检查,即使配额已启用(这可能会导致配额文件损坏或丢失):
`sudo quotacheck --force {{mountpoint}}`
- 在调试模式下检查给定文件系统的配额:
`sudo quotacheck --debug {{mountpoint}}`
- 检查给定文件系统的配额,显示进度:
`sudo quotacheck --verbose {{mountpoint}}`
- 检查用户配额:
`sudo quotacheck --user {{user}} {{mountpoint}}`
- 检查组配额:
`sudo quotacheck --group {{group}} {{mountpoint}}`