Add terminal tricks

Ctrl shortcuts
This commit is contained in:
I-Man Ng 2019-05-09 15:36:03 +08:00 committed by GitHub
parent 68a99bbe7f
commit e553be01fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,6 +35,7 @@ Here's a more stylish version of [Bash-Oneliner](http://onceupon.github.io/Bash-
Ctrl + n : same as Down arrow. Ctrl + n : same as Down arrow.
Ctrl + p : same as Up arrow. Ctrl + p : same as Up arrow.
Ctrl + r : begins a backward search through cammand history.(keep pressing Ctrl + r to move backward) Ctrl + r : begins a backward search through cammand history.(keep pressing Ctrl + r to move backward)
Ctrl + l : Clear the terminal
Ctrl + s : to stop output to terminal. Ctrl + s : to stop output to terminal.
Ctrl + q : to resume output to terminal after Ctrl + s. Ctrl + q : to resume output to terminal after Ctrl + s.
Ctrl + a : move to the beginning of line. Ctrl + a : move to the beginning of line.
@ -43,6 +44,8 @@ Ctrl + d : if you've type something, Ctrl + d deletes the character under the cu
Ctrl + k : delete all text from the cursor to the end of line. Ctrl + k : delete all text from the cursor to the end of line.
Ctrl + x + backspace : delete all text from the beginning of line to the cursor. Ctrl + x + backspace : delete all text from the beginning of line to the cursor.
Ctrl + t : transpose the character before the cursor with the one under the cursor, press Esc + t to transposes the two words before the cursor. Ctrl + t : transpose the character before the cursor with the one under the cursor, press Esc + t to transposes the two words before the cursor.
Ctrl + w : delete the word before the cursor.
Ctrl + u : delete the line before the cursor.
Ctrl + x + Ctrl + e : launch editor define by $EDITOR Ctrl + x + Ctrl + e : launch editor define by $EDITOR
``` ```
##### Change case ##### Change case