1.if if command then commands fi if command then commands else commands fi if command1 then command elif command2 then command elif command3 then command fi 2.test: 用于if条件中 if test condition then commands fi if [condition] then commands fi test有三种比较场…