How can I resume a stopped job in Linux? I was using emacs and accidentally hit ctrl-z which blasted me back to the console. I can see it when I type 'jobs'
[*****]$ jobs + Stopped emacs test_queue.cpp
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
The general job control commands in Linux are:
That's pretty much all of them. Note the % infront of the job number in the commands - this is what tells kill you're talking about jobs and not processes.
If you didn't launch it from current terminal, use
ps aux | grep <process name> to find the process number (pid), then resume it with:
kill -SIGCONT <pid>
(Despite the name,
kill is simply a tool to send a signal to the process, allowing processes to communicate with each other. A "kill signal" is only one of many standard signals.)
Bonus tip: wrap the first character of the process name with
 to prevent the
grep command itself appearing in the results. e.g. to find
emacs process, use
ps aux | grep [e]macs