Linux practice engineer study Note 5: Disk quota

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.