Here I put the final solution. I tried many methods on my mac M1, the best method is re-install homebrew.

Step1:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)"

Step2: Install homebrew

cd /opt 
mkdir homebrew # if not exist, just create one.
curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew

Then, the problem solved.

Answer from Frank on Stack Overflow
🌐
GitHub
github.com › xmrig › xmrig › issues › 3019
KILLED??? zsh error? supposed to use bash LINUX KALI · Issue #3019 · xmrig/xmrig
April 15, 2022 - CUDA disabled [2022-04-14 21:44:05.360] net use pool rx.unmineable.com:3333 139.59.164.251 [2022-04-14 21:44:05.382] net new job from rx.unmineable.com:3333 diff 100001 algo rx/0 height 2602119 (4 tx) [2022-04-14 21:44:05.382] cpu use argon2 implementation SSSE3 [2022-04-14 21:44:06.583] randomx init dataset algo rx/0 (4 threads) seed 0de1f9117624f187... [2022-04-14 21:44:06.621] randomx allocated 2336 MB (2080+256) huge pages 11% 128/1168 +JIT (38 ms) zsh: killed ./xmrig
Author   xmrig
🌐
Kali Linux
forums.kali.org › t › zsh-killed-sudo-u-gvm-greenbone-feed-sync-type-nasl › 6798
Zsh: killed sudo -u gvm greenbone-feed-sync –type nasl - Kali Linux Forums / Kali Linux Troubleshooting - Kali Linux Forum
April 24, 2025 - I recently tried to install OpenVAS on Kali Linux, but during the final stage when I wanted to perform a check using gvm-check-setup, I encountered the following error message: ... And when I tried to fix it by using sudo greenbone-feed-sync --type nasl, the download process got stuck with the error message: zsh: killed.
Discussions

process killed - kali
The kali image is new and updated, I've installed RsaCtf tool w/the kali instructions. I'm using python3. For further context, this is hackthebox's Weak RSA challenge. The tool stalls and zsh kills the process at the londahl attack while trying to decipher a file: --publickey {keyname} ... More on github.com
🌐 github.com
11
November 27, 2020
Why does zsh kills my process every time I enter a git command - Stack Overflow
I'm trying to set up git on my apple M1 macbook air. I tried to run git and I saw that I needed to update my command-line-tools first and so did I. But now, every time I tried to enter a git comman... More on stackoverflow.com
🌐 stackoverflow.com
Terminal zsh:killed - Apple Community
When I open Terminal the first I see is: zsh: killed mkdir -m 700 -p "$SHELL_SESSION_DIR" Whenever i try to run a command the same problem occurs: Desktop % ls zsh: killed ls It happened after I was trying to install mongoDB I've checked my system's resources and there doesn't seem to be any ... More on discussions.apple.com
🌐 discussions.apple.com
June 7, 2023
zsh: killed
Everytime I run kr scan with flags it exits out immediately with the error zsh: killed More on github.com
🌐 github.com
4
August 19, 2021
🌐
Reddit
reddit.com › r/oscp › new kali zsh is killing me...
r/oscp on Reddit: New kali zsh is killing me...
September 12, 2020 -

Folks I need your help.... in doing my revisions for OSCP exam #2 I thought it would be a good idea to update everything and that included the shell (new stuff must be good right...?)

I really want to love zsh but I can’t. I hate it. I hate it so badly. It suggest which directory I want to go to but tab completion doesn’t complete the command; it suggest that I want to run nmap with specific switches but again hitting tab doesn’t complete the command.

It. Is. So. Damn. Aggravating!!!

Given the whole ethos of “try harder” I’ve googled, I’ve edited conf files, I’ve restarted shells and now I’m just giving up. Bash for ever!!

...

Anyway, sorry for the rant, does anyone know how to actually configure zsh to stop it displaying suggestions for auto completion?

🌐
GitHub
github.com › Ganapati › RsaCtfTool › issues › 150
process killed - kali · Issue #150 · RsaCtfTool/RsaCtfTool
November 27, 2020 - The kali image is new and updated, I've installed RsaCtf tool w/the kali instructions. I'm using python3. For further context, this is hackthebox's Weak RSA challenge. The tool stalls and zsh kills the process at the londahl attack while trying to decipher a file: --publickey {keyname} --uncipherfile {filename}
Author   RsaCtfTool
🌐
Apple Community
discussions.apple.com › thread › 254910900
Terminal zsh:killed - Apple Community
June 7, 2023 - When I open Terminal the first I see is: zsh: killed mkdir -m 700 -p "$SHELL_SESSION_DIR" Whenever i try to run a command the same problem occurs: Desktop % ls zsh: killed ls It happened after I was trying to install mongoDB I've checked my system's resources and there doesn't seem to be any ...
🌐
Cockos Incorporated Forums
forum.cockos.com › showthread.php
[SOLVED] What is this? zsh:killed reaper - Cockos Forums
November 6, 2022 - It appears JavaScript is not enabled for your browser. If you already have an account on this system, you can log-in directly here: · Otherwise, in order to verify you are not a bot, you will need to temporarily enable JavaScript and reload this page. Thank you for your understanding
🌐
GitHub
github.com › assetnote › kiterunner › issues › 34
zsh: killed · Issue #34 · assetnote/kiterunner
August 19, 2021 - Everytime I run kr scan with flags it exits out immediately with the error zsh: killed
Author   assetnote
Find elsewhere
🌐
Medium
medium.com › @fraycs › how-to-solve-zsh-killed-on-macos-ventura-5c1b01d1ed8a
How to solve zsh: killed on MacOS Ventura | by Sebastían Pulido | Medium
February 1, 2023 - #if you have something like this in your .zshrc export PATH="$HOME/bin:/usr/local/bin:$PATH" # just comment out that line by adding a # at the beginning # export PATH="$HOME/bin:/usr/local/bin:$PATH"
🌐
GitHub
github.com › rapid7 › metasploit-framework › issues › 14471
msfconsole crashing when enumerating wp login · Issue #14471 · rapid7/metasploit-framework
December 8, 2020 - Launched mfsconsole on my kali linux virtual machine · use auxiliary/scanner/http/wordpress_login_enum · set rhost, wordlists and target uri · It recognized the wordpress site and started user enumeration and validation · after about 30 seconds I get: "zsh: killed msfconsole" https://www.hackingarticles.in/multiple-ways-to-crack-wordpress-login/ brute force wordpress login ·
Author   rapid7
🌐
VirtualBox
forums.virtualbox.org › board index › guest systems › linux guests
zsh: killed [cmd] on files from shared folder - virtualbox.org
October 17, 2023 - It seems I have the same problem, but worse, sudo cat file.txt still gives Killed answer ... Joined: 3. Jul 2020, 16:07 ... Post by Antonis » 7. Dec 2023, 11:54 · Same issue here. Trying to cope and paste a file from/to a mounted share drive from the Host OS, but all I get is "zsh: killed cp <from_path> <to_path>".
🌐
Apple Community
discussions.apple.com › thread › 253726078
zsh: killed - Apple Community
Which probably means PATH is incorrect, or that something in the zsh login script files is off.
🌐
Google Groups
groups.google.com › g › zaproxy-users › c › _uWYyPogsCM
Zap 2.13.0 on Kali Linux keeps crashing
I'm a new Zap user. I'm using Zap 2.13.0 on Kali Linux. I was doing some updates in Manage Add-Ons and then did an automatic scan and Zap crashed. (zsh: killed ./zap.sh)
🌐
Arch Linux Forums
bbs.archlinux.org › viewtopic.php
Pacman killed by ZSH, requires manual intervention / Pacman & Package Upgrade Issues / Arch Linux Forums
September 20, 2023 - If you cannot reproduce this w/o it (start "zsh -f" either from bash or ideally as your terminal command to avoid the parent shell bleeding in), post your zshrc.
🌐
Greenbone Community Forum
forum.greenbone.net › linux distribution and external repo discussion
Zsh: killed sudo -u gvm greenbone-feed-sync --type nasl - Linux Distribution and External Repo Discussion - Greenbone Community Forum
April 23, 2025 - Hello, Need help, please.. After run gvm-check-setup, get error like this : And when try to fix using : sudo greenbone-feed-sync --type nasl the process is downloading, then the process stop with error zsh: ki…
🌐
hashcat
hashcat.net › forum › thread-4642.html
hashcat keeps ending with "killed", what am I doing wrong?
August 28, 2015 - hashcat advanced password recovery · hashcat · Forums · Tools · Events · Search · Hello There, Guest! Login Register · hashcat Forum › Deprecated; Previous versions › Old hashcat Support · « Previous 1 2 3 4 5 6 … 29 Next » · hashcat keeps ending with "killed", what am I doing wrong