From a67ee7e16702784bc8bd75edeb1cc2377976eb09 Mon Sep 17 00:00:00 2001 From: Bonnie I-Man Ng Date: Wed, 15 Mar 2023 07:44:51 +0000 Subject: [PATCH] update ctrl key order --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index f26bf45..1022143 100644 --- a/README.md +++ b/README.md @@ -33,23 +33,23 @@ Here's a more stylish version of [Bash-Oneliner](https://onceupon.github.io/Bash ##### Using Ctrl keys ``` +Ctrl + a : move to the beginning of line. +Ctrl + d : if you've type something, Ctrl + d deletes the character under the cursor, else, it escapes the current shell. +Ctrl + e : move to the end of line. +Ctrl + k : delete all text from the cursor to the end of line. +Ctrl + l : equivalent to clear. Ctrl + n : same as Down arrow. Ctrl + p : same as Up arrow. +Ctrl + q : to resume output to terminal after Ctrl + s. Ctrl + r : begins a backward search through command history.(keep pressing Ctrl + r to move backward) Ctrl + s : to stop output to terminal. -Ctrl + q : to resume output to terminal after Ctrl + s. -Ctrl + a : move to the beginning of line. -Ctrl + e : move to the end of line. -Ctrl + d : if you've type something, Ctrl + d deletes the character under the cursor, else, it escapes the current shell. -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 + 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 : cut the word before the cursor; then Ctrl + y paste it Ctrl + u : cut the line before the cursor; then Ctrl + y paste it -Ctrl + _ : undo typing. -Ctrl + l : equivalent to clear. +Ctrl + w : cut the word before the cursor; then Ctrl + y paste it +Ctrl + x + backspace : delete all text from the beginning of line to the cursor. Ctrl + x + Ctrl + e : launch editor defined by $EDITOR to input your command. Useful for multi-line commands. Ctrl + z : stop current running process and keep it in background. You can use `fg` to continue the process in the foreground, or `bg` to continue the process in the background. +Ctrl + _ : undo typing. ``` ##### Change case ```bash