201503270955UBuntu CMD - groupadd,useradd,img,quota

create :

groupadd quota

useradd -g quota quota

 

view :

vi /etc/passwd

.... quota:x:2002:2002::/home/quota:

 

create image : 

dd if=/dev/zero of=img.iso bs=1M count=10

mkfs.ext3 -F img.iso

mkdir dir

mount -o loop -t ext4 img.iso dir

 

rm image : 

rm dir/*.*

rmdir dir

 

quota : 

1. set disk enable usrquota : 

vim /etc/fstab

... errors=remount-ro,usrquota

回應
關鍵字
[此功能已終止服務]
    沒有新回應!





Powered by Xuite