/bin/bash
2016-03-15 23:39
267 查看
#!/bin/bash是指此脚本使用/bin/bash来解释执行。(还有其他,这只是其中一种,例如bin/sh)
其中,#!是一个特殊的表示符,其后,跟着解释此脚本的shell路径。
在Linux系统中,查看其绝对路径可采用which。
例:
[localhost]#which bash
/usr/local/bin/bash
[localhost]#which sh
/usr/bin/sh
其中,#!是一个特殊的表示符,其后,跟着解释此脚本的shell路径。
在Linux系统中,查看其绝对路径可采用which。
例:
[localhost]#which bash
/usr/local/bin/bash
[localhost]#which sh
/usr/bin/sh
相关文章推荐
- 高性能平台上提交任务的两种方式
- Hbase的shell命令
- 排序算法——shell排序
- 排序算法——shell排序
- bash脚本编程(一)
- Linux笔记(46)——bash变量
- bash脚本编程实践总结(图文)
- shell之进程管理
- shell之文本编辑
- shell之调试&分析
- Linux学习6之shell筛选当前目录下文件并逐个对其进行操作
- Linux学习5之shell显示当前目录下所有的文件和文件夹
- Xmanager Enterprise 4连接不上xshell
- About Zsh & Go2Shell & iTerm2
- shell实现trim函数-去除字符串两侧的空格(包括tab,space键)
- shell之gcc用法汇总
- shell之dhcp的配置介绍
- Bash,Vim,gdb&git常用命令
- shell入门指南
- shell之dns配置