Title: How to list the groups a user belongs to on a Linux system

Text: To list the groups a user belongs to on a Linux system, run the following command in a terminal.

$ groups [userName]
i.e.
$ groups capin
The output should look something similar to,
sys lp wheel uucp lock scanner vboxusers sambashare kvm libvirt rvm users

article.user_id = 1
current_user.id = article.meta_description = "How to list the groups a user belongs to on a Linux system"

Comments

Add a comment:



Back | Edit