Quota Command
[root@local~]# reqquota -u /dev/sda3
[root@local~]# reqquota -g /dev/sda3
[root@local~]# reqquota -ug /dev/sda3
Check the quota status of the partition (-u user / -g group)
[root@local~]# edquota -u alan
Disk quotas for user alan (uid 501)
Filesystem¡@¡@¡@blocks¡@¡@¡@soft¡@¡@¡@¡@hard¡@¡@¡@inodes¡@¡@¡@soft¡@¡@¡@hard
/dev/sda3¡@¡@¡@¡@224¡@¡@¡@800000¡@¡@1024000¡@¡@¡@6¡@¡@¡@¡@ 0¡@¡@¡@¡@ 0
or
setquota -u alan 800000 1024000 0 0 /home
Set the quota soft limit 800M, hard limit 1G to user alan
(-u user / -g group)
[root@local~]# edquota -t
Grace period before enforcing soft limits for users:
Time units may be: days, hours, minutes, or seconds
Filesystem¡@¡@¡@Block ¡@¡@¡@¡@grace period¡@¡@¡@¡@¡@Inode grace period
/dev/sda3¡@¡@¡@¡@¡@¡@¡@¡@¡@¡@¡@7days¡@¡@¡@¡@¡@¡@¡@¡@¡@7days
Set the period before enforcing soft limits for users
[root@local~]# quotaon /home
[root@local~]# quotaoff /dev/sda3
Turn on/off the quota of partition
[root@local~]# quotacheck -vug /home
Quota check in the partition
(It is required for first time quota installation in the partition)
Server is hosted by Alanstudio
Linux Operating System
Recommend screen resolution 1024 x 768 / IE / FireFox
Alan Studio © 2007 by Alan Cheung Hin Lun. All rights reserved.
|