Use the quota editor to open a temporary file containing one line for each mounted file system that has a quotas file in the file system's root directory.
# edquota username |
Where username specifies the user name whose quota you want to change.
Although you can specify multiple users as arguments to the edquota command, the information displayed does not show which user this information belongs to, which could create some confusion.
Enter the number of 1-Kbyte disk blocks, both soft and hard, and the number of inodes, both soft and hard.
Verify that a user's quota has been correctly changed.
# quota -v username |
-v |
Displays user quota information on all mounted file systems with quotas enabled. |
username |
Specifies the user name whose quota you want to check. |
The following example shows the contents of the temporary file opened by the edquota command on a system where /files is the only mounted file system containing a quotas file in the file system's root directory.
fs /files blocks (soft = 0, hard = 0) inodes (soft = 0, hard = 0) |
The following example shows the same temporary file after quotas have been changed.
fs /files blocks (soft = 0, hard = 500) inodes (soft = 0, hard = 100) |
The following example shows how to verify that the hard quotas for user smith have been changed to 500 1-Kbyte blocks, and 100 inodes.
# quota -v smith Disk quotas for smith (uid 12): Filesystem usage quota limit timeleft files quota limit timeleft /files 1 0 500 1 0 100 |