ext4清除单个目录配额
要清除单个目录的配额,可以使用以下命令:
- 首先,确保该目录的配额已经启用。可以使用以下命令检查:
sudo mount -o remount,quota /path/to/mount/point
sudo quotacheck -cug /path/to/mount/point
- 然后,使用以下命令清除目录的配额:
sudo setquota -u <username> 0 0 0 0 /path/to/mount/point
其中,<username>是要清除配额的用户的用户名,/path/to/mount/point是要清除配额的目录所在的挂载点。
- 最后,使用以下命令重新生成配额文件:
sudo quotacheck -cmug /path/to/mount/point
这样就清除了单个目录的配额。
原文地址: https://www.cveoy.top/t/topic/bbdn 著作权归作者所有。请勿转载和采集!