LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Quota (https://www.linuxquestions.org/questions/linux-newbie-8/quota-894837/)

mspatil0037 08-01-2011 01:17 AM

Quota
 
How to check quota of a user in UNIX/Linux?

digsecurity 08-01-2011 01:30 AM

This will help: http://linux.about.com/library/cmd/blcmdl1_quota.htm

troysunix 08-03-2011 11:18 PM

@mspatil0037

In addition to digsecurity's suggestion, have a look at repquota(8). As an example of usage, running quota as a user:
Code:

scottm@tux [0] /usr/bin/quota -ug
Disk quotas for user scottm (uid 1002): none
Disk quotas for group sysvuser (gid 1000):
    Filesystem  blocks  quota  limit  grace  files  quota  limit  grace
      /dev/sdc1    6162*  5120      0    none      6*      5      0    none
scottm@tux [1]

whereas repquota as root:
Code:

root@tux [0] /usr/sbin/repquota -g /users
*** Report for group quotas on device /dev/sdc1
Block grace time: 00:05; Inode grace time: 00:05
                        Block limits                File limits
Group          used    soft    hard  grace    used  soft  hard  grace
----------------------------------------------------------------------
root      --  11292      0      0              4    0    0
sysvuser  -+      4    5120      0            11    5    0  none
bsduser  --      4      0      0              2    0    0

root@tux [0]

I have posted further quota usage examples here if it can be of any assistance.


All times are GMT -5. The time now is 09:56 AM.