edquota 中文man页面

系统
edquota 是一个配额编辑器(如果你想在脚本中设置配额,请参看 setquota(8) ). 在命令行上可以指定一个或多个用户或组.对于每个用户或组,会用 ASCII 形式创建一个针对该用户或组的当前磁盘配额的临时文件,并对这个文件调用编辑器.随后可以修改配额,添加新的配额,等等. 设置某个配额为零表示不施加任何配额限制.

NAME(名称)

edquota - 编辑用户配额  

SYNOPSIS(总览)

edquota [ -p proto-username ] [ -u | -g ] username...

edquota [ -u | -g ] -t  

DESCRIPTION(描述)

edquota 是一个配额编辑器(如果你想在脚本中设置配额,请参看 setquota(8) ). 在命令行上可以指定一个或多个用户或组.对于每个用户或组,会用 ASCII 形式创建一个针对该用户或组的当前磁盘配额的临时文件,并对这个文件调用编辑器.随后可以修改配额,添加新的配额,等等. 设置某个配额为零表示不施加任何配额限制.

可以允许用户超出它们的软限制一段宽限期,该宽限期对每个文件系统指定. 一旦超出此宽限期,软限制即作为硬限制来执行.

文件中列出的当前的使用信息是用于提供信息的;只可以修改硬和软限制.

一旦离开编辑器, edquota 就读入临时文件并修改二进制配额文件以反映所作的修改.

调用的编辑器为 vi(1) 除非 VISUAL 或者 EDITOR 环境变量指定了其它的编辑器.

只有超级用户可以编辑配额.(为了在一个文件系统上建立配额,文件系统的 root目录下必须包含一个由root所有,叫做 aquota.useraquota.group 的文件. 参看 quotaon(8) 以了解详情.)  

OPTIONS(选项)

-u
编辑用户配额.这是默认的选项.
-g
编辑组配额.
-p
对每个指定的用户/组的原配额加倍. 这是用来对一组用户/组初始化配额时常用的方法.
-t
对每个文件系统编辑软时间限制. sec(onds),min(utes),hour(s),day(s)时间单元都是可识别的. 时间限制显示为***的可能时间单元,以使该值大于或等于任何值.

FILES(相关文件)

位于文件系统root下的
aquota.useraquota.group 配额文件.
/etc/mtab
已挂载的文件系统表

SEE ALSO(另见)

quota(1), vi(1), quotactl(2), quotacheck(8), quotaon(8), repquota(8), convertquota(8), setquota(8)  

#p#

NAME

edquota - edit user quotas  

SYNOPSIS

edquota [ -p protoname ] [ -u | -g ] [ -r ] [ -F format-name ] [ -f filesystem ] username...

edquota [ -u | -g ] [ -F format-name ] [ -f filesystem ] -t

edquota [ -u | -g ] [ -F format-name ] [ -f filesystem ] -T username | groupname...  

DESCRIPTION

edquota is a quota editor. One or more users or groups may be specified on the command line. For each user or group a temporary file is created with an ASCII representation of the current disk quotas for that user or group and an editor is then invoked on the file. The quotas may then be modified, new quotas added, etc. Setting a quota to zero indicates that no quota should be imposed.

Users are permitted to exceed their soft limits for a grace period that may be specified per filesystem. Once the grace period has expired, the soft limit is enforced as a hard limit.

The current usage information in the file is for informational purposes; only the hard and soft limits can be changed.

Upon leaving the editor, edquota reads the temporary file and modifies the binary quota files to reflect the changes made.

The editor invoked is vi(1) unless either the EDITOR or the VISUAL environment variable specifies otherwise.

Only the super-user may edit quotas.  

OPTIONS

-r
Edit also non-local quota use rpc.rquotad on remote server to set quota. This option is available only if quota tools were compiled with enabled support for setting quotas over RPC. The -n option is equivalent, and is maintained for backward compatibility.
-u
Edit the user quota. This is the default.
-g
Edit the group quota.
-p protoname
Duplicate the quotas of the prototypical user specified for each user specified. This is the normal mechanism used to initialize quotas for groups of users.
-F format-name
Edit quota for specified format (ie. don't perform format autodetection). Possible format names are: vfsold (version 1 quota), vfsv0 (version 2 quota), rpc (quota over NFS), xfs (quota on XFS filesystem)
-f filesystem
Perform specified operations only for given filesystem (default is to perform operations for all filesystems with quota).
-t
Edit the soft time limits for each filesystem. In old quota format if the time limits are zero, the default time limits in <linux/quota.h> are used. In new quota format time limits must be specified (there is no default value set in kernel). Time units of 'seconds', 'minutes', 'hours', 'days', 'weeks', and 'months' are understood. Time limits are printed in the greatest possible time unit such that the value is greater than or equal to one.
-T
Edit time for the user/group when softlimit is enforced. Possible values are 'unset' or number and unit. Units are same as used in -t option.

FILES

aquota.user or aquota.group
quota file at the filesystem root (version 2 quota, non-XFS filesystems)
quota.user or quota.group
quota file at the filesystem root (version 1 quota, non-XFS filesystems)
/etc/mtab
mounted filesystems table

SEE ALSO

quota(1), vi(1), quotactl(2), quotacheck(8), quotaon(8), repquota(8), setquota(8)

责任编辑:韩亚珊 来源: CMPP.net
相关推荐

2011-08-24 16:48:36

man中文man

2011-08-15 10:21:09

man中文man

2011-08-11 16:11:49

at中文man

2011-08-25 10:21:56

man.conf中文man

2011-08-25 15:39:42

fcloseall中文man

2011-08-25 15:00:15

cfgetispeed中文man

2011-08-19 18:35:50

issue中文man

2011-08-25 17:03:51

pclose中文man

2011-08-25 17:40:25

setvbuf中文man

2011-08-23 14:21:16

poweroff中文man

2011-08-24 15:52:59

intro中文man

2011-08-23 13:40:31

2011-08-25 15:54:08

ferror中文man

2011-08-25 17:24:54

puts中文man

2011-08-25 18:34:55

ungetc中文man

2011-08-23 10:03:40

useradd中文man

2011-08-23 10:29:02

chpasswd中文man

2011-08-23 10:34:22

convertquot中文man

2011-08-23 15:39:34

rpmbuild中文man

2011-08-24 15:48:38

INSERT中文man
点赞
收藏

51CTO技术栈公众号