1、基本语法:if [ command ]; then符合该条件执行的语句fi2、扩展语法:if [ command ];then符合该条件执行的语句elif [ command ];then符合该条件执行的语句else符合该条件执行的语句fi3、语法说明:bash shell会按顺序执行if语句,