check number of user in linux code example Example: get users shell getent passwd $LOGNAME | cut -d: -f7