redhat9下./命令代表什么意思?\.命令又代表什么意思?

lpj003 2005-04-14 11:18:23
./ 例如编译的时候./configure
\. 例如执行mysql数据导入的时候\. /root/11.sql
好像都是代表“执行”的意思,但是有什么区别呢?它们各自是在什么情况下使用呢?
希望各路高手共同探讨!!!
...全文
197 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
leeyiqun 2005-04-15
  • 打赏
  • 举报
回复
在bash里面,运行本目录的脚本程序时,比如运行configure,
可以用 ./configure,
也可以用 . configure。
leeyiqun 2005-04-15
  • 打赏
  • 举报
回复
\. /root/11.sql
这个应该是写在脚本里面的吧,
它表示运行/root/11.sql这个脚本,
如果写在命令行,应该是
. /root/11.sql
leeyiqun 2005-04-15
  • 打赏
  • 举报
回复
. 在bash命令行中相当于csh命令行的 source,
在vi的查找或者替换中,或者是sed、grep、awk这些命令中,
. 是一个元字符,代码任意一个字符,
当用 \ 的时候,即\. 表示就是一个点. ,不是任意一个字符了!
gaoxianfeng 2005-04-15
  • 打赏
  • 举报
回复
学习
lpj003 2005-04-15
  • 打赏
  • 举报
回复
\. 是在mysql数据库进行数据导入时候的命令,我不知道是不是只有mysql支持这个?
sutdy 2005-04-14
  • 打赏
  • 举报
回复
./当前目录
没有\.这种写法
neo954 2005-04-14
  • 打赏
  • 举报
回复
随便找本入门书先看看吧……
rzsheng 2005-04-14
  • 打赏
  • 举报
回复
看来真的没有 \. 的写法
watcher_shen 2005-04-14
  • 打赏
  • 举报
回复
执行mysql数据导入的时候\. /root/11.sql

我没见过这种写法……

./就是在当前路径下运行script时候用的。
rexwang 2005-04-14
  • 打赏
  • 举报
回复
楼上得很有意思。是不是二楼的,在练习英文翻译哟:)
不过如楼上,./没有任何运行的意思。只是一个路径。如果你把你的script路径放入path,你不用./一样运行的
Why not simply invoke the script with scriptname? If the directory you are in ($PWD) is where scriptname is located, why doesn't this work? This fails because, for security reasons, the current directory, "." is not included in a user's $PATH. It is therefore necessary to explicitly invoke the script in the current directory with a ./scriptname.
iverson9398 2005-04-14
  • 打赏
  • 举报
回复
./ means current directory
and \. i 'm not sure what's it!

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧