shell执行选项
-n 测试shell script语法结构只读取shell script但不执行
-x 进入跟踪方式显示所执行的每一条命令用于调度
-a Tag all variables for export
-c "string" 从strings中读取命令
-e 非交互方式
-f 关闭shell文件名产生功能
-h locate and remember functions as defind
-i 交互方式
-k 从环境变量中读取命令的参数
-r 限制方式
-s 从标准输入读取命令
-t 执行命令后退出(shell exits)
-u 在替换中如使用未定义变量为错误
-v verbose,显示shell输入行
本文出自 “赤月之瞳的IT空间” 博客,请务必保留此出处http://niming2008.blog.51cto.com/2933179/1894575
原文:http://niming2008.blog.51cto.com/2933179/1894575