Posted inLinux
[Solution] Fix and Recover a corrupt history file in zsh – Linux
If you ever see a message like this upon opening a new shell - "zsh: corrupt history file /root/.zsh_history". You can easily fix your history file by extracting only the…