Skip to main content

Getting "Killed: 9" response for certain commands in terminal Mac (Ventura)

I have been playing around installing a few software using homebrew and I don't know what happened, but now I am getting Killed:9 error message when trying to execute say the ls, cp commands, etc. I am not able to run webpack also for my web app.

However, commands like mkdir, open, etc run successfully.

I tried re-installing bash, tried using PowerShell also. But none of them is working.

Can you help me recover the corrupted things if any and to overcome this error ?