Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

34
linux/quotacheck Normal file
View File

@@ -0,0 +1,34 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# quotacheck
> Scan a filesystem for disk usage; create, check and repair quota files.
> It is best to run quota check with quotas turned off to prevent damage or loss to quota files.
> More information: <https://manned.org/quotacheck>.
- Check quotas on all mounted non-NFS filesystems:
`sudo quotacheck --all`
- Force check even if quotas are enabled (this can cause damage or loss to quota files):
`sudo quotacheck --force {{mountpoint}}`
- Check quotas on a given filesystem in debug mode:
`sudo quotacheck --debug {{mountpoint}}`
- Check quotas on a given filesystem, displaying the progress:
`sudo quotacheck --verbose {{mountpoint}}`
- Check user quotas:
`sudo quotacheck --user {{user}} {{mountpoint}}`
- Check group quotas:
`sudo quotacheck --group {{group}} {{mountpoint}}`