Gnome Terminal – Pause a Long Running Program in Terminal

execute-commandgnome-terminal

Is there a keyboard key combination that I can use to pause a program running in the terminal? In case it matters, I don't intend to run anything else inside that terminal while the program is paused. I just want to pause the program execution, and resume it later. How can I do this?

Best Answer

Press Control+Z.

This will suspend the process and return you to a shell. You can do other things now if you want or you can return to the background process by entering % followed by Return.

Note that if you're doing this to something that needs to be responsive, you're going to tank the system, but if it's just something like a nano instance, everything should be okay.

Related Question