Jul. 19th, 2024
2024年 6月 14日

Post: zsh: suspended jobs

zsh: suspended jobs

Published 04:12 Dec 31, 2023.

Created by @ezra. Categorized in #UNIX/Linux, and tagged as #UNIX/Linux.

Source format: Markdown

Table of Content

I tried exiting a zsh terminal recently when I was greeted by a new error:

% exit

zsh: you have suspended jobs

What are the jobs? Well, zsh has a built-in command jobs which will tell you that!

% jobs

[1]  + suspended  yarn start

So, the first job is the problem - but how do you solve that?


  1. Pipe the job into a kill command

    % jobs -s | kill %1
  2. Find the PID for the job and then use that in a kill command.

    % jobs -l
    [1] + 35544 suspended yarn start
    % kill 35544

Once I understood what was preventing my terminal from closing, I was able to address the problem and move on with my day!

Pinned Message
I'm looking for a SOFTWARE PROJECT DIRECTOR / SOFTWARE R&D DIRECTOR position in a fresh and dynamic company. I would like to gain the right experience and extend my skills while working in great teams and big projects.
Feel free to contact me.
For more information, please view online résumé or download PDF
本人正在寻求任职 软件项目经理 / 软件技术经理 岗位的机会, 希望加⼊某个新鲜⽽充满活⼒的公司。
如有意向请随时 与我联系
更多信息请 查阅在线简历下载 PDF