mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-11 04:58:25 +00:00
Update cheatsheets
This commit is contained in:
34
linux/edquota
Normal file
34
linux/edquota
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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>.
|
||||
|
||||
- Edit quota of the current user:
|
||||
|
||||
`edquota --user $(whoami)`
|
||||
|
||||
- Edit quota of a specific user:
|
||||
|
||||
`sudo edquota --user {{username}}`
|
||||
|
||||
- Edit quota for a group:
|
||||
|
||||
`sudo edquota --group {{group}}`
|
||||
|
||||
- Restrict operations to a given filesystem (by default edquota operates on all filesystems with quotas):
|
||||
|
||||
`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}}`
|
||||
Reference in New Issue
Block a user