Answers for "users list linux"

12

list users in linux

cat /etc/passwd
Posted by: Guest on April-06-2020
8

list all users linux

awk -F: '{ print $1}' /etc/passwd
Posted by: Guest on May-04-2020
1

users list linux

cut -d: -f1 /etc/passwd
or
cat /etc/passwd
Posted by: Guest on February-25-2021
0

get users shell

getent passwd $LOGNAME | cut -d: -f7
Posted by: Guest on September-17-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language