1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-28 11:15:51 +02:00
tldr/pages/linux/edquota.md

30 lines
860 B
Markdown
Raw Normal View History

2016-10-13 07:48:16 +01:00
# edquota
> Edit quotas for a user or group. By default it operates on all filesystems with quotas.
> Quota information is stored permanently in the `quota.user` and `quota.group` files in the root of the filesystem.
> More information: <https://manned.org/edquota>.
2016-10-13 07:48:16 +01:00
- Edit quota of the current user:
2016-10-13 07:48:16 +01:00
`edquota {{[-u|--user]}} $(whoami)`
2016-10-13 07:48:16 +01:00
- Edit quota of a specific user:
2016-10-13 07:48:16 +01:00
`sudo edquota {{[-u|--user]}} {{username}}`
2016-10-13 07:48:16 +01:00
- Edit quota for a group:
2016-10-13 07:48:16 +01:00
`sudo edquota {{[-g|--group]}} {{group}}`
2016-10-13 07:48:16 +01:00
- Restrict operations to a given filesystem (by default edquota operates on all filesystems with quotas):
2016-10-13 07:48:16 +01:00
`sudo edquota {{[-f|--file-system]}} {{filesystem}}`
2016-10-13 07:48:16 +01:00
- Edit the default grace period:
`sudo edquota {{[-t|--edit-period]}}`
2016-10-13 07:48:16 +01:00
- Duplicate a quota to other users:
`sudo edquota {{[-p|--prototype]}} {{reference_user}} {{destination_user1}} {{destination_user2}}`