TEST(1) TEST(1) test - check file types and compare values test test [ ] [ ] [ . --help --version . , . : ( ) ! 1 -a 2 1 2 1 -o 2 1 2 -n -n -z the length of STRING is zero 1 = 2 1 != 2 _1 -eq _2 _1 _2 _1 -ge _2 _1 _2 _1 -gt _2 _1 _2 _1 -le _2 _1 _2 _1 -lt _2 _1 _2 _1 -ne _2 _1 _2 1 -ef 2 1 2 - 1 -nt 2 1 ( ) 2 1 -ot 2 1 2 -b -c -d -e -f -g -- -G -h ( -L) -k -L ( -h) -N -O -p -r FILE exists and the user has read access -s -S -t -u -- -w FILE exists and the user has write access -x FILE exists and the user has execute (or search) access -h -L, . (. ) . _ -l , . Binary -a and -o are ambiguous. Use 'test EXPR1 && test EXPR2' or 'test EXPR1 || test EXPR2' instead. '[' honors --help and --version, but 'test' treats them as STRINGs. Your shell may have its own version of test and/or [, which usually supersedes the version described here. Please refer to your shell's documentation for details about the options it supports. . coreutils: Copyright (C) 2024 Free Software Foundation, Inc. 3+: 3 . : . , . access(2) Full documentation ,,info '(coreutils) test invocation'" ; 3 . . , - TODO <>. coreutils 9.5 2024 TEST(1)