Answers for "get users shell"

8

list all users linux

awk -F: '{ print $1}' /etc/passwd
Posted by: Guest on May-04-2020
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