quotacheck
systemLinux/Unix
The quotacheck command is one of the most frequently used commands in Linux/Unix-like operating systems. quotacheck Scan a filesystem for disk usage and create, check, or repair quota files
Quick Reference
Command Name:
quotacheck
Category:
system
Platform:
Linux/Unix
Basic Usage:
quotacheck [options] [arguments]
Common Use Cases
Syntax
quotacheck [options] [filesystem...]
Options
Option | Description |
---|---|
-a, --all |
Check all mounted filesystems with quotas |
-b, --backup |
Create backups of the old quota files |
-c, --create-files |
Create new quota files |
-d, --delete-files |
Delete old quota files first |
-f, --force |
Force check even if quotas are inconsistent |
-g, --group |
Check group quotas |
-m, --no-remount |
Do not remount the filesystem read-only |
-M, --try-remount |
Try to remount the filesystem read-only (deprecated) |
-R, --skip-scan |
Skip scanning the filesystem and use the current quota files |
-u, --user |
Check user quotas |
-v, --verbose |
Display more information during execution |
-F, --format=format |
Check quotas of a specific format (vfsold, vfsv0, vfsv1, etc.) |
-h, --help |
Display help message and exit |
-V, --version |
Display version information and exit |
Examples
How to Use These Examples
The examples below show common ways to use the quotacheck
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
# Basic Examples Basic
sudo quotacheck -avug