Get the App
SLTechnology News&Howtos  ›  Servers  › 

Linux disk quota management

Shulou Source: shulou.com Published: 2022-06-02 23:12:37 10月04日 Update

Overview

Disk quota is the storage limit of the specified disk in the computer, that is, the administrator can impose a quota on the disk space that users can use, and each user can only use the disk space within the maximum quota range. This can prevent other users from working properly or even affecting the operation of the system due to the excessive use of disk space by one user. This feature is very important in server management, but it doesn't make much sense for stand-alone users.

Characteristics of disk quota limit

Restriction method: soft limit, hard limit

Type of limit: disk capacity, number of files

Operation flow

First check to see if a software package capable of achieving quotas is installed on the PC.

Turn off enhanced security features

Mounting

Enter the command vim / etc/fstab to enter the mount point

Save exit and enter the mount command to see if it works.

Remount after uninstallation

View

Disk quota permissions on

Set disk quota for user lum, disk space soft limit 50m, hard limit 80m, number of files soft limit 2, hard limit 5

Verify disk quotas (note that this restriction is for user lum, so you need to switch users)

View quota usage

Tags: Limit disk quota user space management function command quantity file input maximum important security small middle finger capacity that is case meaning Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Xiaomi Apple Linux Huawei