Terminal 里面的隐藏快捷键去哪看?

2016-05-23 23:34:00 +08:00
 hukangha
刚找一个功能好久 ( 删除整句命令 ),最终找到一些快捷键,但是这些都不在菜单里,那么像这种快捷键一般去哪里看呢?或者说这些快捷键不属于 Termianl 而属于 shell 程序?

Ctrl + A Go to the beginning of the line you are currently typing on
Ctrl + E Go to the end of the line you are currently typing on
Ctrl + L Clears the Screen, similar to the clear command
Ctrl + U Clears the line before the cursor position. If you are at the end of the line, clears the entire line.
Ctrl + H Same as backspace
Ctrl + R Let ’ s you search through previously used commands
Ctrl + C Kill whatever you are running
Ctrl + D Exit the current shell
Ctrl + Z Puts whatever you are running into a suspended background process. fg restores it.
Ctrl + W Delete the word before the cursor
Ctrl + K Clear the line after the cursor
Ctrl + T Swap the last two characters before the cursor
Esc + T Swap the last two words before the cursor
3201 次点击
所在节点    macOS
21 条回复
lizheming
2016-05-25 18:30:49 +08:00
@netabare 反正 Mac 下我用 Terminal 和 iTerm 都是可以的…

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/280782

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX