补全命令Tab
Tab键在键盘Q的左边一个按键
使用方法:直接在命令行输入你想要的命令前几个字母,再按Tab键;
如:[root@node1 ~]# da --按Tab
danetool date
[root@node1 ~]# da
当匹配的命令过多,则提示你是否全部显示
[root@node1 ~]# l --按Tab
Display all 124 possibilities? (y or n)
帮助命令分三种
当遇到命令不知怎么用的时候,那么就需要查看命令的帮助
# –help
使用方法:
[root@node1 ~]# ls –help
用法:ls [选项]... [文件]...
List information about the FILEs (the current directory by default).
Sort entries alphabetically if none of -cftuvSUX nor --sort is specified.
Mandatory arguments to long options are mandatory for short options too.
-a, --all 不隐藏任何以. 开始的项目
-A, --almost-all 列出除. 及.. 以外的任何项目
--author 与-l 同时使用时列出每个文件的作者
......
# man
使用方法:
[root@node1 ~]# man ls
NAME
ls - list directory contents
SYNOPSIS
ls [OPTION]... [FILE]...
DESCRIPTION
List information about the FILEs (the current directory by default).
Sort entries alphabetically if none of -cftuvSUX nor --sort is speci‐
fied.
按键 | 执行操作结果 |
---|---|
空格键 | 向下翻一页 |
[Page Down] | 向下翻一页 |
[Page Up] | 向上翻一页 |
[Home] | 跳到第一页 |
[End] | 跳到最后一页 |
/string | 向下查找string字符串匹配内容 |
?string | 向上查找string字符串匹配内容 |
n,N | 使用/或?查找内容时候用n或N来向上查询或向下查询 |
q | 退出帮助 |
# info
使用方法:
[root@node1 ~]# info info
按键 | 执行操作结果 |
---|---|
空格键 | 向下翻一页 |
[Page Down] | 向下翻一页 |
[Page Up] | 向上翻一页 |
[Tab] | node之间跳转 |
[Enter] | 光标移动到node上,按enter进入该node |
b | 移动光标到该info页面中的第一个node |
e | 移动光标到该info页面中的最后一个node |
n | 进入下一个node |
p | 进入上一个node |
u | 进入下一个node |
n | 向上移动一层 |
s(/) | 再info页面中搜索 |
h,? | 显示帮助菜单 |
q | 退出帮助 |