QUOTASYNC(1)

πŸ’– QUOTASYNC πŸ’–

okay bestie, pull up a chair, we're talking about quotasync from the General Commands Manual (section 1, obvi) 🫢


✨ NAME ✨

quotasync β€” synchronize in-kernel file system usage and limits to disk format πŸ’…

like. it takes the quota tea the kernel is holding in its head and writes it down for real. iconic behavior.


πŸŽ€ SYNOPSIS πŸŽ€

quotasync [ -ugP ] mount-point...
quotasync [ -ugP ] -a
quotasync -h | -V

🌸 DESCRIPTION 🌸

So quotasync flushes file system usage and limits from kernel memory to quota files stored in the file system. That's the whole vibe. The kernel was holding all this quota info in RAM like it's keeping secrets, and this tool is the group chat screenshot β€” it commits it to disk, fr fr.

By default only the user quotas are synchronized. Not group, not project. Just user. That's the default, no cap.

This tool can be useful if you want to display accurate quotas by tools that parse quota files, like repquota(8). Because those tools read the files, bestie β€” not the kernel's brain. So if the files are stale, your output is stale, and that's giving ✨misinformation✨. Not on our watch.


πŸ‘‘ OPTIONS πŸ‘‘

  • -u, --user β€” Synchronize user usage and limits. πŸ’– (the default, she's the main character)
  • -g, --group β€” Synchronize group usage and limits. 🫢
  • -P, --project β€” Synchronize project usage and limits. note the capital P, bestie, she's fancy πŸŽ€
  • -a, --all β€” Synchronize usage and limits on all file systems. You have to specify this option or to specify desired file systems. like, pick one β€” either -a or you name the mount points yourself. no in-between, that's the rule πŸ’…
  • -V, --version β€” Show program version information and exit. 🌈
  • -h, --help β€” Show program usage and exit. πŸ¦‹

😭 DIAGNOSTICS 😭

If requested synchronization fails, or invalid option is given, quotasync will terminate with non-zero exit code. Otherwise it will return zero.

translation: 0 = slay, we ate. anything else = πŸ’€ something went wrong or you typed a flag that doesn't exist, and she is not playing about it.


πŸ“ FILES πŸ“

  • aquota.user or aquota.group β€” Quota file at the file system root (version 2 quota, non-XFS/GFS2 file systems).
  • quota.user or quota.group β€” Quota file at the file system root (version 1 quota, non-XFS/GFS2 file systems).
  • /etc/mtab β€” List of mounted file systems maintained by user space.
  • /proc/mounts β€” List of mounted file systems maintained by kernel.
heads up bestie: the version 1 vs version 2 thing matters, and XFS/GFS2 are not invited to this party. iykyk 🧚

⭐ SEE ALSO ⭐

quota(1), quotactl(2), mount(8), quotacheck(8), quotaon(8), repquota(8), warnquota(8).

go read them, they're all part of the quota cinematic universe πŸ’œ


and that's the whole page, bestie β€” QUOTASYNC(1), from the General Commands Manual, brought to you with love and zero skips. mwah πŸ’…βœ¨