test.1 (1828B)
1 .TH TEST 1 sbase\-VERSION 2 .SH NAME 3 test \- check file types and compare values 4 .SH SYNOPSIS 5 .B test 6 .RB EXPRESSION 7 .SH DESCRIPTION 8 .B Exit with the status determined by EXPRESSION. 9 .SH OPTIONS 10 .TP 11 .B ! EXPRESSION 12 invert EXPORESSION 13 .TP 14 .B \-b FILE 15 FILE exists and is block special 16 .TP 17 .B \-c FILE 18 FILE exists and is character special 19 .TP 20 .B \-d FILE 21 FILE exists and is a directory 22 .TP 23 .B \-e FILE 24 FILE exists 25 .TP 26 .B \-f FILE 27 ILE exists and is a regular file 28 .TP 29 .B \-g FILE 30 FILE exists and is set-group-ID 31 .TP 32 .B \-k FILE 33 FILE exists and its sticky bit is set 34 .TP 35 .B \-h FILE 36 FILE exists and is a symbolic link (same as -L) 37 .TP 38 .B \-L FILE 39 FILE exists and is a symbolic link (same as -h) 40 .TP 41 .B \-n STRING 42 the length of STRING is nonzero 43 .TP 44 .B \-p FILE 45 FILE exists and is a named pipe 46 .TP 47 .B \-r FILE 48 FILE exists and read permission is granted 49 .TP 50 .B \-S FILE 51 FILE exists and is a socket 52 .TP 53 .B \-s FILE 54 FILE exists and has a size greater than zero 55 .TP 56 .B \-t FD 57 file descriptor FD is opened on a terminal 58 .TP 59 .B \-u FILE 60 exists and its set-user-ID bit is set 61 .TP 62 .B \-w FILE 63 FILE exists and write permission is granted 64 .TP 65 .B \-x FILE 66 FILE exists and execute (or search) permission is granted 67 .TP 68 .B \-z STRING 69 the length of STRING is zero 70 .TP 71 .B s1 = s2 72 True if the strings s1 and s2 are identical 73 .TP 74 .B s1 != s2 75 True if the strings s1 and s2 are not identical 76 .TP 77 .B s1 78 True if s1 is not the null string 79 .TP 80 .B n1 -eq n2 81 True if the integers n1 and n2 are equal 82 .TP 83 .B n1 -ne n2 84 True if the integers n1 and n2 are not equal 85 .TP 86 .B n1 -gt n2 87 True if the integer n1 is greater than the integer n2 88 .TP 89 .B n1 -ge n2 90 True if the integer n1 is great than or equal to the integer n2 91 .TP 92 .B n1 -lt n2 93 True if the integer n1 is less than the integer n2 94 .TP 95 .B n1 -le n2 96 True if the integer n1 is less than or equal to the integer n2