QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1724|回复: 4

脚本文件这句是什么意思? #!/usr/bin/bash

[复制链接]
发表于 2004-3-25 15:02:33 | 显示全部楼层 |阅读模式
是什么意思?
发表于 2004-3-25 20:48:05 | 显示全部楼层
它表明以下的脚本语句用/usr/bin/bash执行。
回复

使用道具 举报

 楼主| 发表于 2004-3-26 08:34:18 | 显示全部楼层
语法是什么? !什么意思?
回复

使用道具 举报

发表于 2004-3-29 23:28:56 | 显示全部楼层
可以解释为理解代码的规则吗?
回复

使用道具 举报

发表于 2004-3-30 09:24:56 | 显示全部楼层

Re: 脚本文件这句是什么意思? #!/usr/bin/b

[quote:c1dd2c7350="lovelypengpeng"]是什么意思?[/quote]
This is an rule form UNIX command parser (of course, linux follows this rule). It telles the system to use which inteprater to excute the script file. You may have:

#!/usr/bin/bash or #!/usr/bin/tcl, etc...

The grammer is #! + inteprater path and name.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-9-29 17:36 , Processed in 0.038958 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表