~1 min read|
I tried exiting a zsh terminal recently when I was greeted by a new error:
zsh: you have suspended jobs
What are the jobs? Well, zsh has a built-in command
jobs which will tell you that!
 + suspended yarn start
So, the first job is the problem - but how do you solve that?
Pipe the job into a
% jobs -s | kill %1
Find the PID for the job and then use that in a
% jobs -l
 + 35544 suspended yarn start
% kill 35544
(For more on
kill, see Killing Processes)
Once I understood what was preventing my terminal from closing, I was able to address the problem and move on with my day!
Hi there and thanks for reading! My name's Stephen. I live in Chicago with my wife, Kate, and dog, Finn. Want more? See about and get in touch!