Answers for "print the groups a current user is part of in linux"

6

linux show groups

cut -d: -f1 /etc/group | sort
Posted by: Guest on December-20-2020
12

add user to group linux

sudo usermod -aG <groups> <username>
Posted by: Guest on October-02-2021

Code answers related to "print the groups a current user is part of in linux"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language