Linux practice engineer study Note 5: Use the disk quota or modify the/etc/fstab file to enable the quota for each file system-add the option usrquota
The default system kernel supports quota.
Mount-o usrquota, maid/dev/sdb1/mnt/d1 or
Mount-o remount, usrquota, kgquota/
You can also modify the/etc/fstab file to enable the quota of each file system-add the options usrquota
Example:
Set LABEL =/home ext3 defaults 1 2
Change
LABEL =/home ext3 defaults, usrquota 1 2
# Init 1 (entering the single-user environment)
# Quotacheck-cvuga or quotacheck-cvag/dev/sdb1 (a stands for all) (g stands for the user group)
# Quotaon-a activation
# Edquota-u redhat entry VI editing user quota
Number of bytes available for editing users, soft, hard, number of files, software, and hard
Quota-u redhat
Edquota-t configuration expiration time
The edquota command can set the same quota for a series of users. Assuming that a quota has been set for user ez, the following command will copy the identical quota limit for subsequent users (mj, jm, and tp:
$ Sudo/usr/sbin/edquota-up ez mj jm tp
Quotaoff/mnt/sdb1 disable disk quota
Quotaon/mnt/sdb1 enabled
The repquota Command reports the quota usage by user (-u) or group (-g. Use the repquota-a command to obtain reports of all file systems.
To check a single user (-u) or group (-g), you can use the quota command. A single user can use this command to check their own quota usage.
Simple setting of putty 0.58
1. modify the language environment LANG = zh_CN.utf8
2. modify the character set translation à UTF8 of the transmitted data
3. change the appearance of appearance font to a new
Ls-ld displays the file owner, details