摘要: # shell脚本 # 如何运行shell脚本 sh test.sh source test.sh ./test.sh # 需要有执行权限 # source和其他两种的区别是。source不会开新进程去执行脚本。 # 所以如果在主进程中定义的变量脚本中要用的话,就需要用export关键字去定义变量。 阅读全文
posted @ 2022-01-27 13:29 看一百次夜空里的深蓝 阅读(130) 评论(0) 推荐(0)