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

linux check user group list

groups user
Comment

list user groups linux

groups
Comment

see what groups a user is in linux

# this will display what groups the active user is in
groups
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 show groups

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

linux user groups

 groups $username
Comment

list groups linux for user

groups userName-Here
Comment

PREVIOUS NEXT
Code Example
Shell :: socket.io-client 
Shell :: install steghide ubuntu 
Shell :: mysql_upgrade xampp 
Shell :: import external python modules in blender 
Shell :: how to check default path of the nginx 
Shell :: ubuntu install lamp 
Shell :: bash random int 
Shell :: sample bash script 
Shell :: git log with simple graph 
Shell :: remote origin remove 
Shell :: how to deploy to netlify using git bash 
Shell :: gcloud shell ssh 
Shell :: shell script if input is empty 
Shell :: osx stop httpd 
Shell :: how to set git password 
Shell :: How to Change Your MySQL/phpmyadmin Password in XAMPP 
Shell :: firebase install 
Shell :: git remove my local changes and pull from master 
Shell :: Curl default connect-timeout 
Shell :: install yup in vue 
Shell :: batch file 
Shell :: yarn version in mac 
Shell :: docker Error: no space left on device 
Shell :: see what groups a user is in linux 
Shell :: install ssl certificate ubuntu nginx 
Shell :: create virtualenv for python project 
Shell :: git how to roll back to a commit 
Shell :: brave on linux 
Shell :: restart odoo service ubuntu 
Shell :: pm2 process disappears after reboot 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =