Shell脚本学习笔记(一)--预备知识

预备知识 shell 检查Script语法:bash -v test.sh Jackbash 不执行,仅查看代码:bash -n test.shpost 追踪执行:bash -x test.shspa 强制变量先声明后使用:shopt -s -o nounsetblog 以sh test.sh执行时,能够没必要事先设定Script的执行权ip ./cd.sh 子shell随即关闭,又回到父shel
相关文章
相关标签/搜索