Mount | grep partition name to check whether the partition supports the disk quota mount-oremount, usrquota, or the temporary enabling of quotavim/etc/fstabdefault, usrquota, use the quotaquotacheck-avug feature to permanently scan the file system and create a quota record file.-a: All scans in the/etc/mtab contain
Mount | grep partition name to check whether the partition supports disk quota
Mount-o remount, usrquota
Vim/etc/fstab
Default, usrquota, and kgquota are enabled permanently
Quotacheck-avug scans the file system and creates a quota record
-A: All the filesystems supported by quota are scanned in the/etc/mtab. after this parameter is added,/mount_point does not need to be written, because all the filesystems are scanned!
-U: aquota. user is created to view the usage of files and directories.
-G: creates an aquota. group
-V: displays information about the scanning process;
Quotaon-avug
-U: quota (aquota. user) is enabled for users)
-G: start quota (aquota. group) for groups)
-V: displays information about the startup process;
-A: start the related quota based on the filesystem configuration in the/etc/mtab. if-a is not added,
The specific filesystem needs to be added later!
Quotaoff-a shut down the quota of all file systems
Quotaoff-ug/mount_point
-A: quota of all filesystems is disabled (according to/etc/mtab)
-U: only disable the user quota for the/mount_point that follows.
-G: only disable group quota for the/mount_point next to it.
Edquota-u username
Limits on configuring groupname for edquota-g groupname
Edquota-t modify the grace period
Edquota-p template account-u new account
Quota: a single user's quota report
Quota-uvs username
Quota-gvs groupname
-U: followed by username, indicating that the user's quota limit value is displayed. If username is not connected, the quota limit value of the shipper is displayed.
-G: followed by groupname, indicating that the quota limit value of the group is displayed.
-V: displays the quota value of each user in filesystem;
-S: use 1024 as a multiple to specify the unit. a unit such as M is displayed!
Repquota: reports the quota of the file system.
Repquota-a [-vugs]
-A: directly go to/etc/mtab to search for the filesystem with the quota flag and report the quota results;
-V: the output data will contain detailed information related to filesystem;
-U: displays the user's quota limit (this is the default value );
-G: displays the quota limits of individual groups.
-S: Use M, G as the unit to display the result
Configure the quota in the setquota command
Setquota [-u |-g] name: block (soft) block (hard) inode (soft) inode (hard) file system
Example: setquota-u quota1 10000 20000 0 0/home
Warnquota sends a warning letter to those who exceed the quota
Vim/etc/warnquota. conf alert template
Vim/etc/cron. daily/warnquota
/Usr/sbin/warnquota
Sends alerts to over-limit users every day
This article is from the "sunsky" blog, please be sure to keep this source http://sunsky.blog.51cto.com/4824967/1293293