In this short article we would like to show how to list any user groups in Linux Command Line.
Note: by typing as second agrument
user_namewe indicate for what user we want to list assigned groups.
Type following command:
john : john sudo cdrom
Explanation: we run command on Debian Linux, indicating as first argument
johnuser, and he was assigned to