LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
123
返回列表 发新帖
楼主: Kevin

编写的shell程序如何直接输入程序名能自动执行

[复制链接]
发表于 2003-9-17 12:36:34 | 显示全部楼层
这是在干什么?

When you want to execute a command, linux will search the $PATH environment or you can use absolute path(/usr/bin/cmd or ./cmd . is the current directory). It will not search current path automatically (for secure reason)

This is the final answer.
发表于 2003-9-21 18:25:15 | 显示全部楼层
还有一个方法就是做个软连接。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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