EN
Bash - list current user groups in Linux
5 points
In this short article we would like to show how to list groups for current user in Linux using Command Line.
Quick solution:
xxxxxxxxxx
1
groups
Example output
xxxxxxxxxx
1
john sudo cdrom
Explanation: we run command on Debian Linux, with logged-in
john
user, and he was assigned tojohn
,sudo
andcdrom
groups.
Example screenshot:
