Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

If i for example start top. suspend it with Ctrl+Z, then enter top again the previously started instance will be continued in the foreground. How can i avoid this behaviour and just start a new instance?

share|improve this question
add comment

1 Answer 1

up vote 4 down vote accepted

You probably want to unset the option AUTO_RESUME:

AUTO_RESUME (-W)

Treat single word simple commands without redirection as candidates for resumption of an existing job.

share|improve this answer
    
Thank you. Thought there might be a command but this is perfect. –  H.B. Jul 9 '12 at 14:26
3  
To start a new instance just this time, arrange for some part of the command name to be quoted, e.g. \top or =top. –  Gilles Jul 9 '12 at 21:52
    
@Gilles: Works as well, why not post that as an answer? –  H.B. Jul 10 '12 at 0:29
    
Why not just press 'q' in top to exit, instead of ctrl-z? Strange. –  lornix Jul 10 '12 at 9:36
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.