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