The “edquota” command in Linux is used to edit user or group quota information on a specified file system. Quotas are used to limit the amount of file system space a user or group can consume. The “edquota” command opens a text editor, typically vi, which allows the user to edit the quota information for a specified user or group. This command is typically used by system administrators to manage the disk usage on a Linux system.
edquota Command Examples
1. Edit quota of the current user:
# edquota --user $(whoami)
2. Edit quota of a specific user:
# sudo edquota --user username
3. Edit quota for a group:
# sudo edquota --group group
4. Restrict operations to a given filesystem (by default edquota operates on all filesystems with quotas):
# sudo edquota --file-system filesystem
5. Edit the default grace period:
# sudo edquota -t
6. Duplicate a quota to other users:
# sudo edquota -p reference_user destination_user1 destination_user2