chan.dev / posts

Readline

ctrl-a: move to the beginning of the line ctrl-b: move backward one character

ctrl-d: delete the character forward ctrl-e: move to the end of the line ctrl-f: move forward one character

ctrl-p: move up one line ctrl-n: move down one line ctrl-h: delete the character before the cursor

ctrl-k: cut from the cursor to the end of the line ctrl-l: clearn the screen

ctrl-o: open a new line below the current line

ctrl-t: swap the character before the cursor with the character under the cursor

ctrl-v: move to last character in file ctrl-w: delete the word before the cursor

ctrl-y: yank (paste) ctrl-k: delete from the cursor to the end of the line