shell中if的用法 0x01 if的基本语法: if [ command ];then 符合该条件执行的语句 elif [ command ];then 符合该条件执行的语句 else 符合该条件执行的语句 fi 0x02 文件/文件夹(目录)判断 [ -b FILE ] 如果 ... huahua 6年前 (2018-03-06) 1729℃ 2喜欢