Wednesday, May 20, 2009

Ways to Determine What Group You're In in *nix

Another *nix tidbit: there are at least a few different ways to find out what groups you belong to. Lots of folks know about:
But Richard just told me about id:
id username
Which results in:
uid=somenumber(username) gid=somegroupid(groupname) groups=somegroupid(groupname),somegroupid(groupname),somegroupid(groupname)...

No comments: