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 , . : -a -o . ,,test 1 && test 2" ,,test 1 || test 2". : [ --help --version, test .test . : test / [, . . . coreutils: Copyright (C) 2023 Free Software Foundation, Inc. 3+: 3 . : . , . access(2) Full documentation ,,info '(coreutils) test invocation'" ; 3 . . , - TODO <>. coreutils 9.4 2024 TEST(1)