edquota command in Linux is used to edit user/group quotas. We can specify one or more users/groups on the command line. If instead of a number is given in the place of user/group name it is treated as a UID/GID. For each user/group, a short-lived file is made with an ASCII representation of the present disk quotas for that user/group, and an editor is then invoked on the file. The quotas can then be modified or new quotas can be added. Setting a quota to zero indicates that no quota should be imposed. Users are permitted to exceed their soft limits for a grace period which will be specified per file system. Once the grace period has expired, the soft limit is enforced as a tough limit. Only the super-user(sudo) may edit quotas.
Syntax:
edquota [-rm] [-u] [-F formatname] [-p username] [-f filesystem] username ... edquota [-rm] -g [-F formatname] [-p groupname] [-f filesystem] groupname ... edquota [-rm] -P [-F formatname] [-p projectname] [-f filesystem] projectname ... edquota [-u|g|-P] [-F formatname] [-f filesystem] -t edquota [-u|g|-P] [-F formatname] [-f filesystem] -T username|groupname|projectname ...
Working with edquota Command in Linux
1. Edit the user quota. This is the default.
edquota -u username

2. Edit the group quota.
edquota -g groupname

3. Edit the remote quota (via RPC).
edquota [-u|-g] -r username | groupname

4. Copy data from a prototype user/group. If –always-resolve is used, then always try to resolve the name, even if it is composed only of digits.
edquota [-u|-g] -p prototype_name username | groupname

5. Edit quota for specified format (ie. don’t perform format auto detection). Possible format names are: vfsold, vfsv0, rpc , xfs.
edquota [-u|-g] -F vfsv0 username | groupname

6. Perform specified operations only for the given file system.
edquota [-u|-g] -f filesystem username | groupname
7. Edit the soft time limits for each file system. Time units of ’seconds’, ’minutes’, ’hours’, and ’days’ are understood.
edquota [-u|-g] -t 12 username | groupname
Recommended Posts:
- 'IPCS' command in Linux with examples
- select command in Linux with examples
- Sed Command in Linux/Unix with examples
- ZIP command in Linux with examples
- SORT command in Linux/Unix with examples
- Cat command in Linux with examples
- Head command in Linux with examples
- Tail command in Linux with examples
- wc command in Linux with examples
- tar command in Linux with examples
- atrm command in Linux with examples
- bc command in Linux with examples
- AWK command in Unix/Linux with examples
- tr command in Unix/Linux with examples
- mv command in Linux with examples
- Paste command in Linux with examples
- comm command in Linux with examples
- cmp Command in Linux with examples
- cut command in Linux with examples
- cp command in Linux with examples
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

