Shell 简易教程

符号 含义
-d file 为目录且存在
-e file 为文件且存在
-f file 为非目录普通文件且存在
-s file 存在且长度不为 0
-L file 为连接且存在
-r file 为文件且可读
-w file 为文件且可写
-x file 为文件且可执行 

符号含义
-eq equal
-ne not equql
-gt greater than
-ge greater equal
-lt less than
-le less equal


---------------------
作者:spch2008
来源:CSDN
原文:https://blog.csdn.net/spch2008/article/details/51375264  

原文地址:https://www.cnblogs.com/shuiyuejiangnan/p/9968855.html