To put the foreground job, in the background, I press cltr+Z and then bg [job-number]
. Is there a way to do this in one step instead of two, with some cltr+[key] command?
And I don't mean the &
. I want to put a process that I already started and am interacting with into the background.
You can skip the job id number: if you ommit it it will take the last suspended job from the current environment. So cltr+Z and
bg
is shorter.If you add this to your
.profile
or.bashrc
alt+w should put
bg
on your screen and execute it so it ends up into background.Example:
I have not been able to add a cltr+Z into the command though. Probably because of the signal being ignored: