• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

repquota Command Examples in Linux

by admin

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 

Filed Under: Linux

Some more articles you might also be interested in …

  1. mkfs Command Examples in Linux
  2. ufw: command not found
  3. Unable to start Nagios Service (CentOS/RHEL)
  4. How to Increase the File Download Size Limit in Apache
  5. ClusterSSH(cssh) – Manage Multiple SSH Sessions on Linux
  6. CentOS / RHEL 7 : How to install and configure ftp server (vsftpd)
  7. How to Resize / Expand a Btrfs Volume / Filesystem
  8. dm-tool: command not found
  9. How to Reinstall Corrupted Library with yum
  10. CentOS / RHEL : How to add new swap partition

You May Also Like

Primary Sidebar

Recent Posts

  • ncat Command Examples in Linux
  • ncat: command not found
  • nautilus Command Examples in Linux
  • namei: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright