Linux command
quotacheck 命令
安全
May affect permissions or system state. Check the target first.
命令示例
Example
sudo quotacheck --all
Force
sudo quotacheck --force [mountpoint]
Example
sudo quotacheck --debug [mountpoint]
Example
sudo quotacheck --verbose [mountpoint]
Example
sudo quotacheck --user [user] [mountpoint]
Example
sudo quotacheck --group [group] [mountpoint]
说明
quotacheck scans filesystems for disk usage and creates or verifies quota files. It examines each file to determine how much space each user and group consumes. Running quotacheck with quotas enabled can corrupt quota files, so quotas should typically be turned off first. The tool creates aquota.user and aquota.group files.
参数
- -a, --all
- Check all mounted non-NFS filesystems
- -f, --force
- Force check even with quotas enabled
- -v, --verbose
- Display progress information
- -d, --debug
- Enable debug mode
- -u, --user _user_
- Check user quotas only
- -g, --group _group_
- Check group quotas only
- -c
- Create quota files if missing
FAQ
What is the quotacheck command used for?
quotacheck scans filesystems for disk usage and creates or verifies quota files. It examines each file to determine how much space each user and group consumes. Running quotacheck with quotas enabled can corrupt quota files, so quotas should typically be turned off first. The tool creates aquota.user and aquota.group files.
How do I run a basic quotacheck example?
Run `sudo quotacheck --all` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -a, --all do in quotacheck?
Check all mounted non-NFS filesystems