shell 条件判断式语句

shell两种判断格式 test -e /root/install.log [ -e /root/install.log] 最常用 [ -d /root ] && echo "yes" || echo "no" #第一个判断命令如果正确执行,则打印"yes",否则打印"no" In /root/student.txt /tmp/stu.txt #创建个硬链接吧 [/root/student.txt
相关文章
相关标签/搜索