check user accounts on linux code example
Example 1: get users shell
getent passwd $LOGNAME | cut -d: -f7
Example 2: how to see our already added users in linux
$ users
tecmint
aaron
getent passwd $LOGNAME | cut -d: -f7
$ users
tecmint
aaron