Bash
Control Characters
This is (tentatively) a comprehensive list of bash control characters (control+key) as I cannot find a (good) list anywhere. It's continually updated as I discover more. Especially the ones that have different functions depending on where an the command promt you are.
- ^a Moves cursor to beggining of line. See also: ^e
- ^b Move back 1 character. See also: ^f
- ^c Kills current process.
- ^d Logout if the line is empty. Otherwise deletes the character under the cursor (same as the Delete key). See also: ^h
- ^e Moves cursor to end of line. See also: ^a
- ^f Forward 1 character. See also: ^b
- ^h Delete character left of the cursor (same as Backspace). See also: ^d
- ^i Same as <Tab>.
- ^j Same as pressing <Enter>. See also: ^m
- ^k Deletes everything under the cursor to the end of the line. See also: ^u
- ^l clears the terminal.
- ^m Same as pressing <Enter>. See also: ^j
- ^n Move to the next item in history. See also: ^p
- ^o Same as pressing <Enter>.
- ^p Move to the previous item in history. See also: ^n
- ^q Resumes output to terminal after it has been ceased by a ^s.
- ^r Reverse History search. (Start typing to bring up matches, ^r again will "tab" through them.)
- ^s Stops output from being written to terminal. But does not stop the process. Handy for checking out a message in a compile that is flying by. ^q will resume output.
- ^t Transpose the last 2 letters.
- ^u Deletes everything left of the cursor to the begining of the command prompt. See also: ^w ^k
- ^w Deletes everything left of the cursor to the begining of the word. See also: ^u ^k
- ^x Hit twice to move cursor to the begining of the line. Hit two more times to move the cursor back where it was.
- ^z Stop a job. You can then fg to resume it or bg to background it.