Get the App
SLTechnology News&Howtos  ›  Servers  › 

Use the setquota command of linux to set file system quotas

Shulou Source: shulou.com Published: 2022-06-02 19:50:25 10月02日 Update

Today, the editor shares with you the use of linux's setquota command to set file system quotas. I believe many people do not know much about it. In order to make you understand better, I have summarized the following contents for you. Let's look down together. I'm sure you'll get something.

Setquota is a command-line quota editor that can directly set quota limits for users or user groups in a command-line manner.

If you want to disable quota limits, you can set the corresponding parameter to 0. If multiple file systems need to modify quota settings, each file system needs to call the setquota command once.

Syntax format: setquota [parameters]

Common parameters:

-an edit all file systems with quota limits enabled-b read quota setting information from standard input-u set command line parameter name specify user's quota-t set user data fast and Inode grace time period

Reference example

Set the quota limit for the specified user on the file system (/ dev/sdb2):

[root@linuxcool] # setquota-u zwx 20480 40 960 600 1200 / deb/sda1

Set the grace period for data blocks and inodes to 10 days (86400 seconds per day):

[root@linuxcool ~] # setquota-tu 864000 86400 / deb/sda1 so much for setting file system quotas using linux's setquota command. I hope the above content can be used as a reference for you. If you like this article, you might as well share it for more people to see.

Tags: Quotas commands files systems users parameters restrictions information content cycles data time nodes references application of knowledge value multiple examples commonly used articles Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Shulou Tech Info vpn OPPO Reno Apple