-b file 若文件存在且是一個塊特殊文件,則爲真
-c file 若文件存在且是一個字符特殊文件,則爲真
-d file 若文件存在且是一個目錄,則爲真
-e file 若文件存在,則爲真
-f file 若文件存在且是一個規則文件,則爲真
-g file 若文件存在且設置了SGID位的值,則爲真
-h file 若文件存在且爲一個符合鏈接,則爲真
-k file 若文件存在且設置了"sticky"位的值
-p file 若文件存在且爲一已命名管道,則爲真
-r file 若文件存在且可讀,則爲真
-s file 若文件存在且其大小大於零,則爲真
-u file 若文件存在且設置了SUID位,則爲真
-w file 若文件存在且可寫,則爲真
-x file 若文件存在且可執行,則爲真
-o file 若文件存在且被有效用戶ID所擁有,則爲真
-L file 若文件爲符號鏈接,則爲真
-z string 若string長度爲0,則爲真
-n string 若string長度不爲0,則爲真
string1 = string2 若兩個字符串相等,則爲真
string1 != string2 若兩個字符串不相等,則爲真
int1 -eq int2 若int1等於int2,則爲真
int1 -ne int2 若int1不等於int2,則爲真
int1 -lt int2 若int1小於int2,則爲真
int1 -le int2 若int1小於等於int2,則爲真
int1 -gt int2 若int1大於int2,則爲真
int1 -ge int2 若int1大於等於int2,則爲真
expr1 -a expr2 若expr1和expr2都爲真則整式爲真
expr1 -o expr2 若expr1和expr2有一個爲真則整式爲真
file1 -nt file2 若file1 比 file2 新,則爲真
file1 -ot file2 若file1 比 file2 舊,則爲真