教你做linux磁盘配额quota

下面的例如都是以/home这个目录为主的!<!–[if !supportLists]–>1. <!–[endif]–>使用quotaon –vaug 命令开启quota功能。v —详细信息显示。a —所有组和用户。u —只针对用户。g —只针对组。<!–[if !supportLists]–>2. <!–[endif]–>从新挂载。例如:[root@localhost ~]# mount -o remount,usrquota,grpquota /home<!–[if !supportLists]–>3. <!–[endif]–>quotacheck -cmug 挂载点<!–[if !supportLists]–>4. <!–[endif]–>使用setquota命令的g或者u参数,默认是对u也就是对用户设置配额。例如:[root@localhost ~]# setquota yy 1024 2048 10 20 /homeyy ――用户名。<!–[if !supportLists]–>1024 <!–[endif]–>――空间大小的软限制。<!–[if !supportLists]–>2048 <!–[endif]–>――空间大小的硬限制。<!–[if !supportLists]–>10 <!–[endif]–>――文件数量的软限制。<!–[if !supportLists]–>20 <!–[endif]–> -―文件数量的硬限制。5.注意!如果对组进行限制的话,,软硬限制是所用组内用户的空间或文件数的总和!repquota -a —–查看用户的使用情况!quotaoff -a 关闭quota功能!别的不管在quota世界里一个block是1k !!!!!edquota -t 修改软限制的过期时间。

勇敢的冷静的理智的去接受失败,有时不但是必要的,而且是很有必要的。

教你做linux磁盘配额quota

相关文章:

你感兴趣的文章:

标签云: