[Solved] kali Execute history -c Error: fc: event not found: – C

Error content: “FC: event not found: – C”

Error reason: Kali’s default shell environment has been changed from bash to Zsh, and history – C needs to run in Bash environment

Method 1: Clear history command

rm -rf /root/.zsh_history
exit

Method 2: Clear history command

cat /dev/null > .zsh_history 
rm .zsh_history
exit

Note: after execution, you need to log in again to take effect

Read More: