Thank you for the reply, but that is to list users and not for a group.
Didn't see anything in the man page covering listing for groups.

~James 


-----Original Message-----
From: Bret Hughes [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 20, 2002 12:47 PM
To: [EMAIL PROTECTED]
Subject: RE: file utility


On Fri, 2002-12-20 at 14:10, James D. Parra wrote:
> This looks very useful. Is there a switch for "lsof" that will show only
> files for a particular group ID?
> 
> ~James


Lets see how do you say that?  Oh yeah, RTFM.

>From the man page for lsof

  -u s     This option selects the listing of files for  the
                user  whose login names or user ID numbers are in
                the comma-separated set s  -  e.g.,  ``abe'',  or
                ``548,root''.   (There should be no spaces in the
                set.)

                Multiple login  names  or  user  ID  numbers  are
                joined  in a single ORed set before participating
                in AND option selection.

                If a login name or user ID is preceded by a  `^',
                it  becomes a negation - i.e., files of processes
                owned by the login name or user ID will never  be
                listed.   A  negated login name or user ID selec-
                tion is neither ANDed nor ORed with other  selec-
                tions;  it is applied before all other selections
                and absolutely excludes the listing of the  files
                of  the  process.  For example, to direct lsof to
                exclude the listing of files  belonging  to  root
                processes, specify ``-u^root'' or ``-u^0''.

There is a lot you can do to get what you want from lsof

HTH

Bret



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to