Linux displays devices such as disk and partition drives as files
/DEV/SDA5
/ Dev store directory for device files
SD represents a USB, Stata, SCSI, SAS interface disk device
a table Try the first hard drive the second one is B
5 table Test First logical partition 1 2 3 4 represent four primary partitions respectively
EXT4: fourth-generation extended file system for data storage
Swap: swap file system that acts like virtual memory
You can use the fdisk partitioning tool to manage partitions in Linux
Disk quota Quota
Administrators can limit the amount of disk space a user can use, and each user can only use disk space in the maximum quota range.
Limits on the number of files a user stores
Restrictions on the size of the user store file
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M01/99/F0/wKioL1lPKa3C3sYeAAFOyFeeYnE840.png-wh_500x0-wm_ 3-wmp_4-s_55095118.png "title=" image 1.png "alt=" Wkiol1lpka3c3syeaafoyfeeyne840.png-wh_50 "/>
1. Mount the option to add support quotas to the file system at the same time
/dev/sdb1/mnt/quota ext4 Defaults,usrquota,grpquota 0 0
2. Generate quota files in the partition Quota.user and Quota.group
Quotacheck-augcv
-A Scan all quota-supported partitions
- u Scan Disk calculates the number of files occupied by the user
- G number of files occupied by the scan disk calculation group
- C Create quota files Aquota.user and Aquota.group
3. Set up quota information for users
Edquota-u User1 Edit User user1 quota letter
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M00/99/F1/wKioL1lPLTzQ-Rh7AAAuEFhQm-8191.png-wh_500x0-wm_ 3-wmp_4-s_3312975527.png "title=" quota. png "alt=" wkiol1lpltzq-rh7aaauefhqm-8191.png-wh_50 "/>
Maximum peak capacity Peak node
4. Turn on/off quota function
Quotaon/quotaoff
Quotaon-a
-a means to turn on the support quota feature for all partitions
Viewing quota information
Quota-u User Name Only view quota information for users
QUOTA-G group name Only view quota information for a group
Repquota Device viewing quota information within a device
Overview of disks in Linux