how to check the current users shell in linux code example Example: get users shell getent passwd $LOGNAME | cut -d: -f7