Linux 终端技巧

命令行快捷键

ctrl + p 上翻命令,相当于 方向键上
ctrl + n 下翻命令,相当于 方向键下
ctrl + b 光标向左移动, 相当于 方向键左
ctrl + f 光标向右移动, 相当于 方向键右
ctrl + a 回到命令行首, 相当于 home键
ctrl + e 回到行尾, 相当于 end键
ctrl + backspace 删除光标前的字符
ctrl + d 删除光标后的字符
shitf + pageup 终端向上翻页
shitf + pagedown 终端向下翻页
ctrl + l 清屏, 相当于 clear命令

man 使用

命令格式: man + [num(可选)] + 命令
参数说明:

       1   Executable programs or shell commands
       2   System calls (functions provided by the kernel)
       3   Library calls (functions within program libraries)
       4   Special files (usually found in /dev)
       5   File formats and conventions eg /etc/passwd
       6   Games
       7   Miscellaneous (including macro packages and conventions), e.g. man(7), groff(7)
       8   System administration commands (usually only for root)
       9   Kernel routines [Non standard]

man 操作命令
空格 向后翻一屏
b 向前翻一屏
ENTER 向后翻一行
k 向前翻一行

查询相关命令
命令: man -k kill

你可能感兴趣的:(Linux 终端技巧)