Wednesday, 28 October 2009

Stopping and Continuing Processes in Linux

Sometimes when I'm working in emacs I accidentally press control-z. This causes the emacs process to stop and me to have a fright.

To wake the emacs process, first list the jobs that are running at the moment. Type:

$ jobs

This should display something similar to:

[1]+ Stopped emacs

Then bring the emacs process to the foreground. Type:

$ fg 1

The number 1 is the number of the process that you want to wake up.

(The image is from the Go Faxer Blog.)

No comments:

Post a Comment