Ctrl+C
: Interrupt (kill) the current foreground process running in in the terminal. This sends the SIGINT signal to the process, which is technically just a request—most processes will honor it, but some may ignore it.Ctrl+Z
: Suspend the current foreground process running in bash. This sends the SIGTSTP signal to the process. To return the process to the foreground later, use the fg process_name command.Ctrl+D
: Close the bash shell. This sends an EOF (End-of-file) marker to bash, and bash exits when it receives this marker. This is similar to running the exit command.The following shortcuts allow you to control what appears on the screen.
Ctrl+L
: Clear the screen. This is similar to running the “clear” command.Use the following shortcuts to quickly move the cursor around the current line while typing a command.
Ctrl+A
: Go to the beginning of the line.Ctrl+E
: Go to the end of the line.Ctrl+B
: Go left (back) one character.Alt+F
: Go right (forward) one word.Ctrl+F
: Go right (forward) one character.Use the following shortcuts to quickly delete characters:
Ctrl+D
: Delete the character under the cursor.Alt +D
: Delete a word after the cursor.Ctrl+U
: Delete all characters before the cursor on the current line.