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.
If you encounter the below error while running the command edquota:
edquota: command not found
you may try installing the below package as per your choice of distribution:
Distribution | Command |
---|---|
Debian | apt-get install quota |
Ubuntu | apt-get install quota |
Arch Linux | pacman -S quota-tools |
Kali Linux | apt-get install quota |
Fedora | dnf install quota-1 |
Raspbian | apt-get install quota |
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