如果命令只记得一部分怎么办?
Tofloor
poster avatar
daloyanf
deepin
2017-12-08 01:58
Author
比如 alias 这个命令 假设我只记得 lia 中间这一部分  该如何查询这个命令啊?

限于linux 本地中
Reply Favorite View the author
All Replies
avatar
187******09
deepin
2017-12-08 02:12
#1
apropos 'lia'

你想查什么就在后面跟什么,比如想查询操作目录的命令:apropos 目录
Reply View the author
avatar
50******99@qq.com
deepin
2017-12-08 02:24
#2
linux 使用请 熟悉   TAB 补全功能
Reply View the author
avatar
daloyanf
deepin
2017-12-08 02:28
#3
https://bbs.deepin.org/post/149766
linux 使用请 熟悉   TAB 补全功能

tab补全只会补后面的哦,在你记得前面的时候可以用
Reply View the author
avatar
daloyanf
deepin
2017-12-08 02:29
#4
https://bbs.deepin.org/post/149766
apropos 'lia'

你想查什么就在后面跟什么,比如想查询操作目录的命令:apropos 目录 ...

大腿,抱抱
Reply View the author
avatar
daloyanf
deepin
2017-12-08 02:32
#5
https://bbs.deepin.org/post/149766
apropos 'lia'

你想查什么就在后面跟什么,比如想查询操作目录的命令:apropos 目录 ...

额,好像这个是man 有些没有文档就查不到.
Reply View the author
avatar
187******09
deepin
2017-12-08 02:44
#6
https://bbs.deepin.org/post/149766
额,好像这个是man 有些没有文档就查不到.

再配合fuck吧
$ lia
<提示找不到这个命令>
$ fuck
...
我记得好像是一个python包,不是apt
Reply View the author
avatar
50******99@qq.com
deepin
2017-12-08 02:49
#7
https://bbs.deepin.org/post/149766
tab补全只会补后面的哦,在你记得前面的时候可以用

你为啥命令会记住中间呢?想不通
Reply View the author
avatar
50******99@qq.com
deepin
2017-12-08 02:49
#8
https://bbs.deepin.org/post/149766
额,好像这个是man 有些没有文档就查不到.

TAB怎么用,我还是知道的
Reply View the author
avatar
woodelf
deepin
2017-12-08 03:01
#9
表示zsh支持从中间开始的补全,original是我输入的原始文本。

Reply View the author
avatar
daloyanf
deepin
2017-12-08 03:25
#10
https://bbs.deepin.org/post/149766
表示zsh支持从中间开始的补全,original是我输入的原始文本。

emmmmmmmmmmmmmmmmm
Reply View the author