Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

linux show groups

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

linux list groups

cat /etc/group

cat /etc/groups | grep <groupname>
  
# Example:
cat /etc/groups | grep sudo
# Output
sudo:x:27:<user1>, <user2>, <user3>...

# sudo : group name
# x : password (encrypted for security reasons)
# 27 : could be another number, represents group ID
# list of users in group
Comment

list user groups linux

groups
Comment

linux show groups

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

linux list user group

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

linux user groups

 groups $username
Comment

list groups linux for user

groups userName-Here
Comment

PREVIOUS NEXT
Code Example
Shell :: base64 decode command line ubuntu 
Shell :: uninstall all microsoft apps powershell 
Shell :: docker prune 
Shell :: how to get directory size in linux 
Shell :: install AMD drivers on Ubuntu 21.04 
Shell :: apache start stop restart 
Shell :: copy local docker image to kind cluster 
Shell :: combine strings bash 
Shell :: access wsl files from windows explorer 
Shell :: do not install puppeteer 
Shell :: run bash script on zsh 
Shell :: bash echo multiline 
Shell :: brew install mac 
Shell :: count files command mac 
Shell :: how to use termianl on mac to go back one directory 
Shell :: forward port with ssh 
Shell :: how to verify my ssh key password 
Shell :: Large files detected. You may want to try Git Large File Storage 
Shell :: Checking for an existing ssh key 
Shell :: duplicate clone remote branch locally git 
Shell :: list user groups linux 
Shell :: Nextcloud Fedora 36 
Shell :: vadersentiment pip install 
Shell :: flask 
Shell :: ubuntu terminal autocomplete not working 
Shell :: how to start mongodb server in ubuntu 
Shell :: how to check is heroku git remote is added 
Shell :: find node install location windows 
Shell :: awk print 3rd column 
Shell :: This site can’t be reached 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =