This tutorial explains Linux “quotaoff” command, options and its usage with examples.
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 :
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.
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
# 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.
- Practice Programming MCQs
- Apply for Programming Internship
- Check Linux Books
- Check Information Technology Books