linux shell script中的exit后面接的退出码有哪些?
2015-07-01 11:49
288 查看
Linux中exit
后面的退出码
退出码(exit status,或exit code)的约定:
0表示成功(Zero - Success)
非0表示失败(Non-Zero - Failure)
2表示用法不当(Incorrect Usage)
127表示命令没有找到(Command Not Found)
126表示不是可执行的(Not an executable)
后面的退出码
退出码(exit status,或exit code)的约定:
0表示成功(Zero - Success)
非0表示失败(Non-Zero - Failure)
2表示用法不当(Incorrect Usage)
127表示命令没有找到(Command Not Found)
126表示不是可执行的(Not an executable)
相关文章推荐
- Linux shell scripts中条件判断语句中的常用参数
- Shell脚本之监视指定进程的运行状态
- Linux使用Shell脚本实现ftp的自动上传下载
- Shell脚本--刘晓涛
- PHP+shell实现多线程的方法
- 编写Bash Shell通过gnuplot绘制系统性能数据图的方法
- 编写shell脚本将VPS上的数据备份到Dropbox网盘的方法
- Android shell command execute Demo
- 编写shell脚本将VPS上的数据备份到Dropbox网盘的方法
- 编写Bash Shell通过gnuplot绘制系统性能数据图的方法
- Shell脚本实现监视指定进程的运行状态
- PHP+shell实现多线程的方法
- linux shell脚本攻略 学习笔记2 -- 第二章 命令之乐
- github for window 中 git shell 设置代理方法和解决ssl证书错误的问题
- Shell脚本编程之函数篇
- bash shell 初体验
- Linux 站在用户角度讲shell类型
- adb shell 命令详解
- cygwin本地.bashrc配置
- 【shell脚本】nginx每天自动切割日志脚本