Shell/Bash: linux show groups Example


Shell/Bash Example: This is the "linux show groups" Example. compiled from many sources on the internet by

linux show groups

cut -d: -f1 /etc/group | sort

how to check user in group linux

# to see the group joined by current user
$ id 

groups {USERNAME}
groups vivek

list user groups linux


linux list user group

groups [user name]
# [user name] : (optionnal) the user to list the group of
#                           default is the one executing the command.

* Summary: This "linux show groups" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!