Get the App
SLTechnology News&Howtos  ›  Servers  › 

Use the edquota command of linux to edit disk quotas for users or groups

Shulou Source: shulou.com Published: 2022-06-02 18:40:40 11月14日 Update

This article mainly introduces the use of linux edquota command to edit user or group disk quota, the article is very detailed, has a certain reference value, interested friends must read it!

Edquota presets use vi to edit disk quota settings for users or groups

Syntax format: edquota [parameters] [user or group name.]

Common parameters:

-u sets the user's disk quota, which is the default parameter-g sets the group's disk quota-p applies the source user's disk quota setting to other users or groups-t sets the grace period

Reference example

Assume that linuxcool is a system account that requires a quota to allocate disk quotas to users:

[root@linuxcool] # edquota-u linuxcool

Want to use the same quota configuration as linuxcool for Jack, Tom, and Chen users:

[root@linuxcool] # edquota-p linuxcool-u Jack Tom Chen

For the quota of the group, except that the corresponding-u option in the edquota command is changed to the-g option, for example, the following operation on the webterm1 group:

[root@linuxcool ~] # edquota-g webterm1 above is to use the edquota command of linux to edit the disk quota of a user or group. Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: User quota disk command content parameter reference three value user interest name quota instance partner account commonly used more term Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Microsoft MariaDB NVidia Shulou Technology