GNU/Linux shells have many shortcut keys which you can use to speed up your work, below is a rough list of some (also see CTRL-R in the history section of the commands, over here, the Section called The command-line history).
the “end-of-file” (EOF) key combination can be used to quickly log out of any terminal. CTRL-D is also used in programs such as “at” to signal that you have finished typing your commands (the EOF command).
For further information please see the Section called Controlling Processes in Chapter 9.
If fg doesn't work: If fg doesn't work you may need to type jobs and then fg job_name or fg job_number
This key combination can be used to cut or delete what is currently in front of the cursor.
This key combination can be used to cut or delete the entire line that has being typed.