Mindon.IDEA

Air off, Mind on ~ / Javascript+Golang, Sci, Health… /

Shortcuts for Linux Console

I’m using text editor coding HTML & JavaScript. Enjoying compiling android apps, blackberry 10 apps, adobe air apps …

But moving cursor in a console command line is such a painful thing. Ah, yes, shortcuts, there must be some for console.

Here they are - shortcuts for linux console and Mac Terminal:

Ctrl+n: next command (downward arrow) 下一个命令(往上箭头)

Ctrl+p: previous command (upward arrow) 前一个命令(往下箭头)

Ctrl+r: retrieve history commands 搜索历史命令

Ctrl+a: ahead 跳至行首

Ctrl+e: end 跳至行尾

Ctrl+b: backward 左移 (往左箭头)

Ctrl+f: forward 右移 (往右箭头)

Ctrl+w: wipe to ahead 删至行首

Ctrl+k: kick out to tail 删至行尾

Ctrl+u: undo to clean current command 取消命令

Ctrl+h: delete history by one single character 往回删除一个字符

Ctrl+d: delete one single character 删除光标字符

Ctrl+y: yank, to paste text removed by Ctrl+u,Ctrl+k,Ctrl+w 粘贴上次删掉的文本

Ctrl+t: taking left character to right 右移光标及其左一字符

Ctrl+i: infill command auto 自动补充完整

Ctrl+m: move (Enter) 行动(相当Enter键)

Other shortcuts:

Ctrl+s: silence screen 使终端发呆,静止,可以使快速输出的终端屏幕停下来。

Ctrl+q: quit silence 退出Ctrl+s引起的发呆。

Ctrl+z: switch running task to backend (use fg to restore) 使正在运行在终端的任务,运行于后台。 (可用fg恢复)

Ctrl+c: Abort current task 中断终端中正在执行的任务。

Ctrl+d: EOT U+0004, exit 在空命令行的情况下可以退出终端。

Ctrl+[: Escape 相当于Esc键。

Esc: press 3 times to show all console commands 连续按3次显示所有的支持的终端命令。

Tab: infill command auto (press 2 times to show list of candidates) 命令、路径补全功能。(连按2次显示候选列表)

Comments