2

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?

1 Answer 1

4

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.

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

You must log in to answer this question.

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