Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 02-21-2007, 04:38 AM   #1
Registered: Sep 2004
Location: Malaysia
Posts: 181

Rep: Reputation: 30
Check group usage in bytes

I heard there is a limitation of every group can use up to 1024 bytes only. Does anyone knows what is the command to check group usage in bytes.

Appreciate if someone could help.
Thank you.....
Old 02-21-2007, 04:52 AM   #2
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Up to 1024 bytes seems nothing, but maybe I do not exactly understand what do you mean for "group usage". In which way this limitation has been done? If using quotas, you can check the group usage by
quota -g
On the other end, if you want to know how much space is used by all the files belonging to a specific group, you can do something like:
find / -type f -group users | xargs ls -l | gawk '{usage += $5} END {print usage}'
This will return the amount in bytes of all the files which belong to the group "users". Just a warning: this command may take a long time to execute, depending of the number of files found!
Old 02-21-2007, 08:52 PM   #3
Registered: Sep 2004
Location: Malaysia
Posts: 181

Original Poster
Rep: Reputation: 30
colucix, Thank You for the reply.

Actually I am here facing an issue regarding to the NIS group. Previously we are facing issue of the too many users tie up to one single group. At the end, we end up with all the users in the group facing aceess permission failure.

I have a group call "group1" with 3 users ID(user1, user2, user3)
I would like to know how much of bytes usage will "group1" need to tie user1, user2, user3?

I would like to know is there any command to check the a particular group usage in bytes.

Anyone can help?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Check hard disk usage per directory alaios Linux - General 4 10-09-2006 03:55 PM
group check VirtualGod *BSD 0 08-17-2005 05:44 PM
How to check daily internet usage? mrpc_cambodia Linux - General 1 07-25-2005 11:34 PM
How To Check Traffic Usage/Bandwidth pjbeal Linux - Newbie 4 12-14-2004 06:29 PM
Complex group usage opteek Linux - General 3 04-12-2002 10:01 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:16 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration