If you’d like to edit a group’s quota instead, use the -g option in its place. The -u option specifies that this is a user quota we’ll be editing. Let’s edit our example sammy user’s quota: sudo edquota -u sammy We use the edquota command to edit quotas.
#Extfs terminal commands how to#
Here, we’ll go over how to set quotas with both the edquota and setquota commands. There are a few ways we can set quotas for users or groups. Our server is now monitoring and enforcing quotas, but we’ve not set any yet! Next we’ll set a disk quota for a single user. Now we’re ready to turn on the quota system: sudo quotaon -v / If you didn’t include the u or g options in the quotacheck command, the corresponding file will be missing. Output oup bin dev home lib64 media opt root sbin srv tmp var vmlinuz.oldĪer boot etc initrd.img lib lost+found mnt proc run snap sys usr vmlinuz We can verify that the appropriate files were created by listing the root directory: ls / If you don’t need to enable user- or group-based quotas, you can leave off the corresponding quotacheck option. Remounting the filesystem as read-only will give more accurate results in case a user is actively saving files during the process, but is not necessary during this initial setup.
#Extfs terminal commands update#
Next we will update our filesystem’s mount options to enable quotas on our root filesystem.
![extfs terminal commands extfs terminal commands](https://i.pinimg.com/600x315/73/83/7f/73837fb1e1aef917a46686408c8b1ec3.jpg)
![extfs terminal commands extfs terminal commands](https://www.ghacks.net/wp-content/uploads/2020/05/windows-terminal-tabs.png)
Run the previous find command again to verify that the installation was successful. This will provide the kernel modules necessary for implementing quotas.
#Extfs terminal commands install#
If you get no output from the above command, install the linux-image-extra-virtual package: sudo apt install linux-image-extra-virtual Your kernel version – highlighted in the file paths above – will likely be different, but as long as the two modules are listed, you’re all set and can skip the rest of this step. Output/lib/modules/ 4.15.0-45-generic/kernel/fs/quota/quota_v1.ko