LinuxDevCenter.com
oreilly.comSafari Books Online.Conferences.





Linux in a Nutshell

This directory of Linux commands is from Linux in a Nutshell, 5th Edition.

Click on any of the 687 commands below to get a description and list of available options. All links in the command summaries point to the online version of the book on Safari Bookshelf.

Buy it now, or read it online on Safari Bookshelf.



setquota

setquota [options] [name] [limits] filesystems

System administration command. Set quotas from the command line. Provide limits in the format soft-block-limit hard-block-limit soft-inode-limit hard-inode-limit. To disable a quota, set it to 0. See also edquota, a vi editor interface for editing and setting quotas.

Options

-a

Apply settings to all filesystems listed in /etc/mtab that support quotas.

-b

Read new settings from standard input. Provide as a list, each line in the form of "name limits."

-Fformat

Specify filesystem quota format to use. See quota for a list of accepted values.

-g

Set group quotas instead of users.

-pprototype

Apply the same settings as used for the specified user or group: prototype.

-tblockgrace inodegrace

Specify overall grace times in seconds for block and inode quotas.

-Tname blockgrace inodegrace

Specify grace times in seconds for individual user or group name. Use the string unset to remove existing grace times.

-u

Set user quotas. (This is the default.)