ZhangZhihui's Blog  

Ctrl + ALt + T : Open a new terminal

Ctrl + L: Clear outputs (not really clear, just add a screen of blank lines)

Ctrl + D: Exit current shell

Ctrl + A: Move cursor to beginning

Ctrl + E: Move cursor to the end

Ctrl + U: Delete characters before cursor

Ctrl + K: Delete characters after cursor

Ctrl + C: Terminate currently running process

Ctrl + Z: Stop currently running process which can be resumed later

zzh@ZZHPC:~$ sleep 200
^Z
[1]+  Stopped                 sleep 200
zzh@ZZHPC:~$ sleep 300
^Z
[2]+  Stopped                 sleep 300
zzh@ZZHPC:~$ fg 'sleep 200'
sleep 200
^C
zzh@ZZHPC:~$ fg 'sleep 300'
sleep 300
^C

Ctrl + R: Search in the history commands

Ctrl + G: Quit the Ctrl + R search

Ctrl + F: Move forward one screen (in vi, less, more)

Ctrl + B: Move back one screen (in vi, less, more)

/: Search forward (in vi, less, more)

?: Search backward (in vi, less, more)

posted on 2023-08-06 08:31  ZhangZhihuiAAA  阅读(13)  评论(0编辑  收藏  举报