Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

20.5. Often used Commands

The commands listed below are some that we use often, but many more exist. Check the man page for more details and information.

Quota. Quota displays users' disk usage and limits on a file system. To display user disk usage and limits, use the command:
                  [root@deep] /# quota -u wahib
                

                  Disk quotas for user wahib (uid 501):
                  Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
                  /dev/sda6    6001*   6000       0    none       7       0       0
                

To display group quotas for the group of which the user is a member, use the command:
                  [root@deep] /# quota -g wahib
                

                  Disk quotas for group wahib (gid 501):
                  Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
                  /dev/sda6    5995*   5000       0    none       1       0       0
                
If the group quota is not set for the user specified, you will receive the following message:

                  Disk quotas for group wahib (gid 501): none
                

Repquota . Repquota produces summarized quota information of the disk usage and quotas for the specified file systems. Also, it prints for each user the current number of files and amount of space used (in kilobytes). Here is a sample output repquota gives you results may vary:
                  [root@deep] /# repquota -a
                

                             Block limits               				File limits
                  User        	    	used    	soft    	hard  	grace  	used  	soft    	hard		grace
                  Roo		--	21       	0       	0       4    	0   	0
                  Named	        --	6               0       	0       5     	0       0
                  Admin	        --  	388657	        0       	0       21      21      0     		0
                  Wahib	        --    	6001            0       	0       7     	0     	0
                             Block limits               				File limits
                  User      	      	used    	soft    	hard  	grace    	used  	soft	hard  	        grace
                  root      	--      21       	0       	0       4     	        0	0
                  named     	--      6       	0       	0       5     	        0       0
                  admin     	--  	388657	        0       	0       2121            0       0
                  wahib     	--    	6001    	6000       	0   	none            7	0   	0
                

 
 
  Published under the terms of the Open Publication License Design by Interspire