Forrest logo
back to the quotacheck tool

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

This command with the use of sudo runs the quotacheck tool with the option --force on a specific ${mountpoint}.

The quotacheck tool is used to check the disk usage and the disk quotas of a file system on Linux systems. It scans the file system and updates the disk quota information based on the actual disk usage of each file or directory.

The --force option is used to force a full scan of the file system, regardless of when it was last checked. By default, quotacheck skips the file systems that have been checked within a certain time period (e.g., every week). With --force, it ignores this check and performs a complete scan.

The ${mountpoint} is the specific directory location of the file system that you want to check the disk usage and quotas for. For example, if you want to check the file system mounted at /home, you would replace ${mountpoint} with /home in the command.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the quotacheck tool