quotaoff Command in Linux with Examples

This tutorial explains Linux “quotaoff” command, options and its usage with examples.

quotaff – turn filesystem quotas off

Description :

The quotaoff command disables disk quotas for one or more file systems. By default, both user and group quotas are disabled.

An error (EPERM) will be returned if the quota.user and quota.group files are not owned by user root and group system. Ownership changes on these files are not permitted while quotas are active.

Usage :

advertisement
advertisement

quotaoff [ -g ] [ -u ] [ -v ] { -a | FileSystem … }

Options :

-a
Enables or disables all file systems that are read-write and have disk quotas, as indicated by the /etc/filesystems file. When used with the -g flag, only group quotas in the /etc/filesystems file are enabled or disabled; when used with the -u flag, only user quotas in the /etc/filesystems file are enabled or disabled.
-g
Specifies that only group quotas are enabled or disabled.
-u
Specifies that only user quotas are enabled or disabled.
-v
Prints a message for each file system in which quotas are turned on or off.

Note: Join free Sanfoundry classes at Telegram or Youtube

Examples :

1. To disable user and group quotas for all file systems in the /etc/filesystems file

# quotaoff -a

2. To disable user and group quotas and also print message for the same

advertisement
# quotaoff -vug /dev/sdb1
/dev/sdb1 [/home]: group quotas turned off
/dev/sdb1 [/home]: user quotas turned off

3. To disable user quotas for the /usr file system, enter:

# quotaoff -u /usr

Sanfoundry Global Education & Learning Series – 1000 Linux Tutorials.

advertisement
If you wish to look at all Linux commands and their usage examples, go to Linux Commands Tutorial.

If you find any mistake above, kindly email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.