In the bash terminal I can hit Control+Z to suspend any running process... then I can type fg
to resume the process.
Is it possible to suspend a process if I only have it's PID? And if so, what command should I use?
I'm looking for something like:
suspend-process $PID_OF_PROCESS
and then to resume it with
resume-process $PID_OF_PROCESS
jobs
). So you'd go:kill -TSTP %1
– Karoh May 02 '16 at 22:58kill -STOP
and it behaves exactly likekill -TSTP
for shell jobs. – Rick Jul 29 '22 at 16:29