LinuxSir.cn,穿越时空的Linuxsir!

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

历史中的*

[复制链接]
发表于 2003-8-20 15:03:33 | 显示全部楼层

哈哈哈。

试一试下面的命令?:
ls *
*
history
结果如何?
发表于 2003-8-20 15:11:27 | 显示全部楼层

回复: 哈哈哈。

最初由 alphatan 发表
试一试下面的命令?:
ls *
*
history
结果如何?

楼主说的*是挨着序号的,
1021 ls
1022*
1023 ls
:ask确实是个问题!不知道谁能给解释解释那个*是咋来的:help
发表于 2003-8-20 16:30:18 | 显示全部楼层
在history命令的显示中就没试出来。
不过下面的东西可以在/etc/inputrc中加上去,而后就"UPARROW"修改命令的时候就在命令行前面有个*号了。<---本来以为用VI模式修改才不会在history中显示,而后在普通模式也一样……

mark-modified-lines (Off)
If set to On, history lines that have been modified are dis- played with a preceding asterisk (*).

不过话说回来,自己去花时间弄这个也确实无聊。
发表于 2003-8-20 18:43:16 | 显示全部楼层
It's simply, just look this:

$ ls -lA
total 4
-rwxrwxr-x    1 xyb      xyb           278  8月 20 18:41 gres
$ gres
Usage: gres pattern replacement file
$ gr*
Usage: gres pattern replacement file
$ history | tail -4
1014  ls -lA
1015  gres
1016  gr*
1017  history | tail -4
$
 楼主| 发表于 2003-8-20 19:18:05 | 显示全部楼层
I don't understand!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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