1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
CTRL L = Clear the terminal #### Navigation CTRL A = Cursor to start of line CTRL E = Cursor the end of line CTRL F = Forward one char CTRL B = Back one char ALT F = Forward one word ALT B = Back one word Ctrl p = Previous command (Up arrow) Ctrl n = Next command (Down arrow) #### Manipulate ALT U = Uppercase right word ALT L = Lowercase right word ALT C = Init Cap next word ALT T = Swap current word with previous CTRL T = Swap character under cursor with the previous one #### Delete CTRL U = Delete left CTRL K = Delete right CTRL W or ALT DEL = Delete word on the left ALT D = Delete to the end of word CTRL D = delete character under the cursor CTRL H = delete character before the cursor CTRL Y = Paste (after CTRL U,K or W) ALT Y = Loop through previously cut text (after CTRL Y) ALT . = Loop through and paste last argument of previous commands. !! = repeat last command !abc = Run last command starting with abc !abc:p = Print last command starting with abc !$ = Print last argument of previous command !* = Print all arguments of previous command ALT + . Retrive last argument of previous command ^abc^def Run previous command, replacing abc with def CTRL - = Undo CTRL R = reverse search history (repeat to loop through results) CTRL R x 2 = Search the last remembered search term CTRL G = Escape from history searching mode CTRL XX = Toggle between the start of line and current cursor position CTRL XX = Move between end of line and current cursor position (and back again) CTRL L = Clear screen |