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

Popularity: 5% [?]

One thought on “Accidentally pressed Ctrl-Z in a Linux terminal in Ubuntu Intrepid Ipex. What do I do now?”

  1. Hi I just did something extremely stupid.

    I had problems with my GUI manager in Ubuntu 11.10 so I opened a terminal and typed ‘compiz –replace’ to restart the GUI.
    At some point later I accidentally typed Crtl.+Z and the GUI went on halt. So I cannot access the terminal anymore.

    Now my question:
    How to send this particular process the signal to run again from another terminal (e.g. Crtl+Alt+F1)

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>