shell 备忘

2017-11-11  本文已影响11人  暴风鱼

shell脚本调试

$ bash -x domains.sh
    # -x 进入跟踪方式,显示所执行的每一条命令

参见:
https://www.cyberciti.biz/tips/debugging-shell-script.html
https://www.ibm.com/developerworks/cn/linux/l-cn-shell-debug/index.html


‘.’ 的意思

    # 执行脚本文件‘/lib/lsb/init-functions’
    . /lib/lsb/init-functions

‘:’ 的意思

    # true的意思
    :

上一篇 下一篇

猜你喜欢

热点阅读