How to resume terminal functionality after issuing the "suspend" command?
I typed suspend
in my terminal, and it suspended the execution.
How do I get back to normal terminal functioning? I've tried Ctrl+C, Ctrl+D, Ctrl+Q (as suggested here), and Ctrl+Z, but none of these work. Of course I can close the terminal and open a new one, but is there no way to "resume" the terminal functionality?
I'm running Ubuntu GNOME 16.04, with default (bash) shell.
Solution 1:
From your link:
until it receives a SIGCONT signal.
So that would be kill -SIGCONT {pid}
-
killall -CONT bash
would resume all. -
kill -18 {pid}
would be the same. - and so is
kill -s CONT {pid}
According to this list it should be control-z but you need to use control-z to stop the process:
18 - SIGCONT - Resume process, ctrl-Z (2nd)
19 - SIGSTOP - Pause the process / free command line, ctrl-Z (1st)
You need the {pid} of the shell session running in the terminal
And there is also job control commands:
fg, bg
The fg command switches a job running in the background into the foreground.
The bg command restarts a suspended job, and runs it in the background.
If no job number is specified, then the fg or bg command acts
upon the currently running job.