0

please help me, whenever I write some command like ls or ls -l it gives me zsh: killed ls or zsh: killed ls -l.

i even tried to uninstall homebrew using homebrew docs but unable todo so due to zsh killed.

below is the screenshot please have a look enter image description here

P.S: I am using mac m1.

7
  • What is in your zsh startup files?
    – mmmmmm
    Jul 30 at 15:20
  • Sounds like you need to read some Unix tutorials - or manuals - for zsh look at zsh.sourceforge.io The issue is that there are several things that are needed to be know and each one of these is a whole answer here - and has been asked.
    – mmmmmm
    Jul 30 at 16:08
  • Startup files are ~/.zshrc ~/.zprofile ~/.zshenv Try using this answer apple.stackexchange.com/a/219083/237 to get a terminal and see what is in them
    – mmmmmm
    Jul 30 at 16:11
  • 1
    That message doesn't mean that zsh killed the program, it means that zsh is informing you that the program was killed (probably by something unrelated to zsh). Does this happen with all commands, or just some (e.g. ls)? If it's just some, there's probably something weird with those programs, maybe a security/code signing problem. For example, it may be trying to use the homebrew version, but if that's damaged it'll fail. Jul 30 at 17:05
  • 1
    Another starting point is to create a new user. Login as that and see if you get the same issue.
    – mmmmmm
    Jul 31 at 7:27

0

You must log in to answer this question.

Browse other questions tagged .