Terminal runs processes by itself

Days ago, I noticed that my terminal runs processes in the background when I want to close it a pop-up show that "Closing this window will terminate the running processes: -zsh, sleep".

What does it mean and how can I stop it?

Thank you.

MacBook Pro 13″, macOS 11.5

Posted on Aug 14, 2021 7:53 AM

Reply
1 reply

Aug 14, 2021 8:12 AM in response to Yousra_Chahinez

Yousra_Chahinez wrote:

Days ago, I noticed that my terminal runs processes in the background when I want to close it a pop-up show that "Closing this window will terminate the running processes: -zsh, sleep".
What does it mean and how can I stop it?
Thank you.



check you Terminal> Preferences>General for running command or default




What job is running,(?) copy and paste:

job


Terminal, Command Z might simply suspend, however Command C will quit.


*Some applications will trap control C and ignore it. You may need to enter multiple instances of Control \ to get the job done. The latter will also pop a dialog with obvious buttons about reporting to Apple or not.


Also, Control D will kill the shell running in the Terminal, or the actual Terminal window will also disappear — but not the running Terminal application itself.



You can always kill a job, from Terminal, copy and paste:

kill %1






more info: https://www.digitalocean.com/community/tutorials/how-to-use-bash-s-job-control-to-manage-foreground-and-background-processes


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Terminal runs processes by itself

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.