
test
List of commands for test:
-
test:ai:5c187 Checks if the file.txt does not exist$ test ! -f ${filename}try on your machineexplain this command
-
test:tldr:084ca test: Test if a file exists.$ test -f "${filename_or_directory}"try on your machineexplain this command
-
test:tldr:89351 test: Test if a given variable is equal to a given string.$ test "${$MY_VAR}" == "${-bin-zsh}"try on your machineexplain this command
-
test:tldr:c3fa6 test: Test if a directory does not exist.$ test ! -d "${path-to-directory}"try on your machineexplain this command
-
test:tldr:d755c test: Test if a given variable is empty.$ test -z "${$GIT_BRANCH}"try on your machineexplain this command
-
test:tldr:f4091 test: If A is true, then do B, or C in the case of an error (notice that C may run even if A fails).$ test ${condition} && ${echo "true"} || ${echo "false"}try on your machineexplain this command