$ help suspend suspend: suspend [-f] Suspend shell execution. Suspend the execution of this shell until it receives a SIGCONT signal.
How should I send a SIGCONT signal to a shell suspended by
suspend in a gnome terminal tab?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
The only way to resume the suspended shell is to send the
SIGCONT signal, presumably from another shell. You'll need to know the PID (process ID) of the shell.
kill -cont $shellpid
If you don't know the PID already, try this:
ps x | grep bash
For example, when I suspended my shell, I saw this with
ps x | grep bash:
6147 pts/14 S+ 0:00 grep --color bash 6172 pts/14 Ss 0:01 /bin/bash 15085 pts/0 Ss+ 0:00 /bin/bash 15121 pts/12 Ts+ 0:01 /bin/bash
Look at that third column. The shell you want is the one with the
T, and that one has a PID (first column) of 15121. Of course the PID in your case will differ; this was just an example. Once you find the PID (let's say it is 15121), then run:
kill -cont 15121