浏览代码

edquota: add page (#1001)

Michael Pearce 8 年之前
父节点
当前提交
7681e7fa89
共有 1 个文件被更改,包括 28 次插入0 次删除
  1. 28 0
      pages/linux/edquota.md

+ 28 - 0
pages/linux/edquota.md

@@ -0,0 +1,28 @@
+# edquota
+
+> Edit quota for a user or group. By default it operates on all file systems with quotas.
+> Quota information is stored permanently in the quota.user and quota.group files in the root of the file system.
+
+- Edit quota of current user:
+
+`edquota {{user}}`
+
+- Edit quota of specific user:
+
+`sudo edquota {{user}}`
+
+- Edit the group quota:
+
+`sudo edquota --group {{group}}`
+
+- Perform operations on given file system ONLY (default is to perform operations on all file systems with quota):
+
+`sudo edquota --file-system {{filesystem}}`
+
+- Edit the default grace period:
+
+`sudo edquota -t`
+
+- Duplicate a quota to other users:
+
+`sudo edquota -p {{reference_user}} {{destination_user1}} {{destination_user2}}`