After a short awkward pause, Dennis quietly said
"Thanks Tim."

On Wed, 2005-07-27 at 15:03 -0700, Tim Hammerquist wrote:
> Dennis Bagley wrote:
> > Would someone remind me of some commands I'm spacing?
> > 
> > How do you get a list of the groups that exist on a linux box?
> 
> $ awk -F: '{print $1}' /etc/group
> 
> (iow, the first field in each line of the /etc/group file;
> group(5) for details)
> 
> > How do you get a list of the groups associated with
> > a particular user?
> 
> $ awk -F: '$4 ~ /username/ {print $1}' /etc/group
> 
> ... or you could just use the groups(1) command:  :)
> 
> For groups the current user is in:
> 
> $ groups
> 
> For groups that dbagley is in:
> 
> $ groups dbagley
> 
> Sorry.  I was just in an awkard mood today.
> 
> AHAHAHA! *ahem*
> 
> Cheers, all!
> Tim Hammerquist


_______________________________________________
RLUG mailing list
[email protected]
http://lists.rlug.org/mailman/listinfo/rlug

Reply via email to