test

Evaluate condition. If it is true, returns 0 exit status,…

test

Evaluate condition. If it is true, returns 0 exit status, otherwise returns 1.

test $MY_VAR == '/bin/zsh'

test -z $GIT_BRANCH

test -e {{filename}}

test ! -d {{path/to/directory}}

test {{condition}} && echo "true" || echo "false"

Также может быть вам интересно:
КодТрюки BashНастройкиТерминал/Консоль
← tesseract testssl →