I'm running few tasks side by side on an ubuntu 18 LTS. So I'm switching between these jobs by running
# command &
# fg
# fg -
(Also) use of Ctrl+z sometimes to send running job to background.
Say I have 3 jobs in my list
# jobs
[1]+ Stopped nano /etc/nginx/site-available/blog.conf
[2] Stopped top
[3]- Stopped nano script.sh
I can successfully switch between these, but when I run kill
command on these, jobs still showing in the list, none gets killed, I wonder why?
# kill %1
I list again, and jobs are still there.
# jobs
[1]+ Stopped nano /etc/nginx/site-available/blog.conf
[2] Stopped top
[3]- Stopped nano script.sh
kill %1
not working. I can kill process with process id, but why not like this? – Sollosa Mar 11 '20 at 09:35kill %1
v.kill PID
, and my original duplicate was correct. – Stephen Kitt Mar 12 '20 at 07:54