Disk Quota (quota)
Disk Quota is to limit the size of the disks that users or groups can use.
You can set the disk size used by a user or the total disk size used by all users in the group.
Common quata scenarios
Webpage space limit for each person on WWW Server
Email space limit for each person on the mail server
File Server
The disk quota is for the entire file system. For example,/dev/sda5 is mounted under/home, and all files under/home are restricted.
Quata restrictions:
Block limit, limit the total capacity (more common)
Indode restrictions, limit the number of files
Soft and hard)
Quata has a flexible limit and a hard limit. When the disk capacity is lower than the soft limit, the disk can be used normally. When the disk capacity is higher than the soft limit, during each login, the user is prompted to clear the disk and a grace period is given. If the user cleans up data within the grace period, the grace period is automatically canceled. If the grace period ends, the disk is not cleared, the soft limit value will immediately replace the hard limit value. disk usage will be locked and no more files can be added.
The quota instance test will be supplemented later.
Reference: laruence's basic learning about Linux Private food
Disk Quota (quota)