如何清除 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
其中,'
- 最后,使用以下命令重新生成配额文件:
sudo quotacheck -cmug /path/to/mount/point
这样就清除了单个目录的配额。
原文地址: https://www.cveoy.top/t/topic/mBrR 著作权归作者所有。请勿转载和采集!