Forrest logo
tool overview
On this page you find all important commands for the CLI tool quotacheck. If the command you are looking for is missing please ask our AI.

quotacheck

The quotacheck command line tool is used in Unix-like operating systems to check and repair filesystem quota files. It ensures that the disk quotas for users and groups are correctly maintained. It scans the designated filesystems and compares the actual disk usage with the quota limits set for each user or group. If there are inconsistencies or discrepancies, quotacheck reports them.

To run quotacheck, the user needs to have administrative privileges or root access. One can specify the filesystems to be checked as arguments or configure it to check all filesystems listed in /etc/fstab. quotacheck can be run manually, but it is often included in system startup scripts to regularly check quotas automatically.

If inconsistencies are found, quotacheck can fix them by updating the quota files to reflect the actual disk usage. It also provides options to exclude specific directories, display only the inconsistencies, or force a complete rescan. quotacheck uses other quota management tools, such as quotaon and quotaoff, to enable or disable quotas on particular filesystems. Overall, quotacheck is a valuable tool for maintaining accurate disk quotas on Unix-like systems.

List of commands for quotacheck:

  • quotacheck:tldr:0a146 quotacheck: Check quotas on a given filesystem, displaying the progress.
    $ sudo quotacheck --verbose ${mountpoint}
    try on your machine
    explain this command
  • quotacheck:tldr:0eee1 quotacheck: Force check even if quotas are enabled (this can cause damage or loss to quota files).
    $ sudo quotacheck --force ${mountpoint}
    try on your machine
    explain this command
  • quotacheck:tldr:2d6b9 quotacheck: Check quotas on all mounted non-NFS filesystems.
    $ sudo quotacheck --all
    try on your machine
    explain this command
  • quotacheck:tldr:5c9d8 quotacheck: Check quotas on a given filesystem in debug mode.
    $ sudo quotacheck --debug ${mountpoint}
    try on your machine
    explain this command
  • quotacheck:tldr:71dfd quotacheck: Check group quotas.
    $ sudo quotacheck --group ${group} ${mountpoint}
    try on your machine
    explain this command
  • quotacheck:tldr:970dc quotacheck: Check user quotas.
    $ sudo quotacheck --user ${user} ${mountpoint}
    try on your machine
    explain this command
tool overview