List the UNIX groups I'm in
Blog
Instead of being asleep at 10:25 on 16 September 2013, kitt created this:
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