随笔分类 -  复习Shell

摘要:![](https://img2020.cnblogs.com/blog/2281854/202110/2281854-20211021133840583-531859190.png)![](https://img2020.cnblogs.com/blog/2281854/202110/2281854-20211021133849205-15032131.png) 阅读全文
posted @ 2021-10-21 14:50 lavida2000 阅读(14) 评论(0) 推荐(0) 编辑
摘要:shell 条件判断的两种表现形式 # test方式 test -b /dev/sda1 # [] 方式 [ -b /dev/sda1 ] [ -d /root ] && echo "yes" || echo "no" == 判断字符串是否相等,-eq 是判断数值是否相等, 单=号是给变量赋值 阅读全文
posted @ 2021-07-07 13:56 lavida2000 阅读(78) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示