kali 默认的 shell 环境已经从 bash 更改为 zsh,而history -c需要在bash环境下运行
因此执行history -c会报错
清除历史命令:
rm -rf /kali/.zsh_history
rm -rf /root/.zsh_history
然后重新打开命令行
kali 默认的 shell 环境已经从 bash 更改为 zsh,而history -c需要在bash环境下运行
因此执行history -c会报错
清除历史命令:
rm -rf /kali/.zsh_history
rm -rf /root/.zsh_history
然后重新打开命令行