LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 794|回复: 2

请问:./download 与 download有什么区别?

[复制链接]
发表于 2006-9-25 23:16:43 | 显示全部楼层 |阅读模式
在运行某些命令的时候需要使用点和斜杠加命令名

有的时候直接运行命令名

请问这两种方式有什么区别?

谢谢!
发表于 2006-9-26 00:40:19 | 显示全部楼层
"./download" is to run the command "download" which is in the current directory.
the dot "." means the current directory.
this syntax is used when current directory is not in the $PATH.

when command "download" is in %PATH, the command can be directly executed by
"download"
the system will find its location.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-26 08:56:09 | 显示全部楼层
谢谢!!!!!!!
回复 支持 反对

使用道具 举报

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

本版积分规则

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