用户工具

站点工具


linux:terminal快捷键

terminal快捷键

有些时候,这些快捷键可能被terminal窗口的菜单栏占用,

只需要Edit -> Keyboard Shortcuts... -> 把enable menu access 和 Enable the menu shortcuts key前面方框的勾去掉即可。

快捷键功能
Ctrl+A光标移动到行头
Ctrl+E光标移动到行尾
Alt+B光标向后(向左)移动一个word
Alt+F光标向前(向右)移动一个word
Ctrl+B光标向后(向左)移到一个字符
Ctrl+F光标向前(向右)移到一个字符
Alt+D删除光标后面的一个word
Ctrl+D删除光标后面的一个字符
Ctrl-lClear the screen and move the cursor to the top left corner. The clear command does the same thing.

1. xfce

Edit -> Preferences -> Advanced -> Shortcuts

勾选以下三项Disable:
- Disable all menu access keys (such as Alt+f)

  • Disable menu shortcut key (F10 by default)
  • Disable help window shortcut kye (F1 by default)

:linux:pasted:20210822-201804.png

:linux:pasted:20210822-201701.png

历史命令

格式功能
!$用上一条命令的最后一个参数作为当前命令行
!!string将 string 添加到上一条命令的最后并执行
> echo haha
haha
> echo !$
haha
> !!hello
hahahello
linux/terminal快捷键.txt · 最后更改: 由 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki