How to find out what group a given user has?

Alex Argo picture Alex Argo · Dec 8, 2008 · Viewed 297.1k times · Source

In Unix/Linux, how do you find out what group a given user is in via command line?

Answer

Bombe picture Bombe · Dec 8, 2008
groups

or

groups user