Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

in Linux/shell, how can I bring background jobs to foreground and vice versa?

share|improve this question

migrated from Dec 14 '09 at 20:17

This question came from our site for professional and enthusiast programmers.

Did you use ctrl+z to send it to the background? If so, you can bring it back to the front with the command


To get a list of all the background jobs, use

share|improve this answer
simple and work answer,i like this style. – janwen Aug 27 '13 at 6:57

if you have a list of backgrounded jobs (as seen with the 'jobs' command, you can pick a particular one with

fg % number

where number = job number



[1]    suspended  top
[2]  - suspended  top
[3]  + suspended  top

fg %2
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .