!/bin/bash
时间: 2023-09-20 17:07:34 浏览: 102
0403-极智开发-解读shell脚本开头bin-bash的作用
5星 · 资源好评率100%
"#!/bin/bash"是一个在Linux脚本开头常见的注释行,用来声明解析当前文件要使用的解释器。这行注释告诉系统使用/bin/bash作为解释器来执行脚本中的命令。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [关于#!/bin/bash](https://blog.csdn.net/weixin_41783910/article/details/108005170)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [linux脚本开头的#!/bin/bash有什么作用](https://blog.csdn.net/soldier_d/article/details/118670924)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文