test
command takes one of the following syntax forms:[
command which is available on all POSIX shells. The new upgraded version of the test
command [[
(double brackets) is supported on most modern systems using Bash, Zsh, and Ksh as a default shell. To negate the test expression, use the logical NOT
(!
) operator.