Tag Archives: ctrl-z ubuntu linux terminal Intrepid Ibex OSX

Accidentally pressed Ctrl-Z in a Linux terminal in Ubuntu Intrepid Ipex. What do I do now?

Today I was trying to upgrade my Ubuntu with sudo apt-get upgrade and accidentally typed Ctrl-Z while in the terminal and the upgrade stopped. After doing some research on this, here is what I found:

Pressing Ctrl Z in the terminal sends the process to the background causing it to pause until it is told to come back to the foreground.

Pressing CTRL Z in the Linux terminal

Pressing CTRL Z in the Linux terminal

Once the task is paused you can run another task and call the paused one later when it is needed. To check the paused tasks type jobs in the terminal.

To resume the process, you can type fg. If you have multiple tasks, then you type fg 1, fg 2 etc…

Resume task in terminal

Resume task in terminal