Quotacheck 用于扫描文件系统的磁盘使用情况,并将配额记录文件 "aquota.user" 更新到最新状态。 我建议在系统启动时运行 quotacheck,并通过 cronjob 定期运行(例如,每周一次?)。
Repquota 生成文件系统的摘要配额信息。 这是 repquota 给出的示例输出
# repquota -a Block limits File limits User used soft hard grace used soft hard grace root -- 175419 0 0 14679 0 0 bin -- 18000 0 0 735 0 0 uucp -- 729 0 0 23 0 0 man -- 57 0 0 10 0 0 user1 -- 13046 15360 19200 806 1500 2250 user2 -- 2838 5120 6400 377 1000 1500
Quotaon 用于启用配额记帐; quotaoff 用于禁用它。 实际上,这两个文件类似。 它们在系统启动和关闭时执行。