Terminal zsh:killed

Hi,

I'm looking for someone who can help me troubleshoot the terminal,

On my M1 Macbook with Ventua 13.4

When I open the terminal it says the following (before I do anything else)

zsh: killed mkdir -m 700 -p "$SHELL_SESSION_DIR"

Then when I try to run any code, again everything comes back with zsh: killed

I've looked at a lot of forums/videos/articles on the internet, but I just haven't managed to solve the problem yet, if anyone has any ideas please let me know

Thanks in advance for all your help!

MacBook Air 13″, macOS 13.4

Posted on Jun 7, 2023 2:16 AM

Reply
Question marked as Top-ranking reply

Posted on Jun 7, 2023 2:50 AM

Similar questions

16 replies

Jun 28, 2024 3:31 PM in response to bianka147

In my case -- on Sonoma 14.5 -- I didn't get the

zsh: killed mkdir -m 700 -p "$SHELL_SESSION_DIR"


error when opening a terminal window. Instead, I got a message that `rbenv` could not be found


It turns out that something happened with the IT department's anti-virus / anti-malware application -- and all of a sudden the only permissible command line commands were those built into MacOS.

..I'm sure that it comes as no surprise that our IT helpdesk staff claim they did nothing in the days prior to this happening...



Homebrew and installed Homebrew apps were being automatically killed

...as was `vscode` -- installed from PKG / DMG -- IF ONE EXECUTED `vscode` FROM THE COMMAND LINE

...in comparison, if I ran Visual Studio Code by double-clicking the Application icon, IT WORKED JUST FINE


When I asked IT to disable our anti-virus / anti-malware app, all commands from the command line started working JUST FINE


So try disabling anything that might block applications:

  • Anti-virus / anti-malware
  • Group Policy (if joined to an Active Directory / AzureAD)
  • IT administrative applications
  • etc.


...and see if that fixes things...

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 zsh:killed

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