List the UNIX groups I'm in
Blog
Written with a loving hand by kitt some time around 10:25 on 16 September 2013
Easy enough:
$ groups users www-data $
So much easier than, say, the concatenation of these:
$ grep `whoami` /etc/group | cut -f1 -d: www-data $ grep :`grep $USER /etc/passwd | cut -f4 -d:`: /etc/group | cut -f1 -d: users $
Add new comment