#!bin/bash
来源:互联网 发布:bf是什么软件 编辑:程序博客网 时间:2024/05/22 05:12
It's a convention so the *nix shell knows what kind of interpreter to run.
For example, older flavors of ATT defaulted to "sh" (the Bourne shell), while older versions of BSD defaulted to "csh" (the C shell).
Even today (where most systems run "bash", the "Bourne Again Shell"), scripts can be in bash, python, perl, ruby, PHP, etc, etc. For example, you might see "!/bin/perl" or "/bin/perl5".
PS: The exclamation mark ("!") is affectionately called "bang". The shell comment symbol ("#") is sometimes called "hash".
PPS: Remember - under *nix, associating a suffix with a file type is merely a convention, not a "rule". An "executable" can be a binary program, any one of a million script types and other things as well. Hence the need for "#!/bin/bash".
- #!/bin/bash
- #!/bin/bash
- #!/bin/bash
- #!/bin/bash
- #!/bin/bash
- #!/bin/bash
- #!/bin/bash
- #!/bin/bash
- #!/bin/bash
- #!bin/bash
- #!/bin/bash
- /bin/bash
- #!/bin/bash
- #!/bin/bash
- #!/bin/sh & #!/bin/bash
- #!/bin/bash #!/bin/sh
- #!/bin/bash 与#!/bin/sh
- #!/bin/bash 与#!/bin/sh
- 配置apt-get高速下载源
- Android Style开发之Theme
- Joomla反序列化漏洞的查漏补缺
- MySQL 触发器简单实例
- 关于有偿提供拼图响应式后台的通知
- #!bin/bash
- Android项目重构之路:架构篇
- LNMP
- ASM创建spfile失败 $ORACLE_HOME/bin/oracle
- linux 用通配符排除指定字符结尾文件的一种方法
- array地址问题(为何指向赋值,仍然地址不同)
- 修改Bundle identify引起的问题
- spring事务管理
- Android APK反编译之apktool