操作符(如果……则为真)
str1 = str2 str1 != str2 str1 < str2 str1 > str2 -n str1 str1为非null(长度大于0) -z str1 str1为非null(长度为0) 常用操作符(为真) -b 块设备文件 -c 字符设备文件 -d 目录 -e 存在 -f 一般文件 -g file file有设置它的setgid位 -h 符号链接 -L 符号链接 -p 管道 -r 可读 -S 套接字 -s 非空 -u file有设置它的setgid位 -w 可写 -x …