find default login shell for user code example Example: get users shell getent passwd $LOGNAME | cut -d: -f7