repquota Command Examples in Linux

repquota is used to report on the status of quotas. In the first form, repquota displays a summary report on the quotas for the given filesystems on a per-user or per-group basis. In the second form, the -a option causes a summary for all filesystems with quotas to be displayed. This command fails for nonroot users unless the quota database files are world-readable. The current number of files and the amount of space utilized are printed for each user, along with any quotas created with edquota.

Report user quotas for /home:

# repquota -v /home
*** Report for user quotas on /dev/sda9 (/home)
                         Block limits     File limits
User         used  soft   hard grace used soft hard grace
root   --  418941     0      0        269    0    0
328    --    1411     0      0         20    0    0
jdean  --    9818 99900 100000        334    0    0
u1     --      44     0      0         43    0    0
u2     --      44     0      0         43    0    0
u3     --     127   155    300        124    0    0
jdoe   --      87 99900 100000         84    0    0
bsmith --      42  1990   2000         41    0    0

Important options for the repquota command include the following:

Option Description
-a Display quotas for all filesystems with quota mount options specified in the /etc/fstab file.
-g Display group quotas instead of specific user quotas.
-s Display information in human-readable sizes rather than block sizes.

repquota Command Examples

1. To report the quota:

# repquota

2. To report the quota for all the file system:

# repquota -a
# repquota --all 

3. To set to verbose mode:

# repquota -v
# repquota --verbose 

4. To report quota for a user:

# repquota -u mike
# repquota --user mike 

5. To report quota for a group:

# repquota -g SUPPORT
# repquota --group SUPPORT 

6. To print the output in human readable format:

# repquota -s
# repquota --human-readable 

7. To truncate the names to 8 chars:

# repquota -t
# repquota --truncate-names 

8. To print grace time in seconds since epoch:

# repquota -p
# repquota --raw-grace 

9. To not to trqanslate the UID and GID to names:

# repquota -n
# repquota --no-names 

10. To avoid the autofs mountpoints:

# repquota -i
# repquota --no-autofs 

11. To translate big number of ids at once:

# repquota -c 
# repquota --batch-translation 

12. To translate ids one by one:

# repquota -C
# repquota --no-batch-translation 

13. To report information for specific format:

# repquota -F
# repquota --format=formatname 

14. To get the help:

# repquota --help 

15. To get the version:

# repquota --version 
Related Post