How to fix and recover a “corrupt history file” in zsh?

By Hardik Savani | January 31, 2016 | | 31637 Viewer | Category : Ubuntu


Many user use ubuntu OS and many user face one of the common problem several time like

“corrupt history file in zsh" most of time face this problem when reboot your OS so, How to fix this problem please follow this command and fix that.

mv .zsh_history .zsh_history_bad

strings .zsh_history_bad > .zsh_history

fc -R .zsh_history



Hardik Savani
My name is Hardik Savani. I'm a full-stack developer, entrepreneur and owner of Aatman Infotech. I live in India and I love to write tutorials and tips that can help to other artisan. I am a big fan of PHP, Javascript, JQuery, Laravel, Codeigniter, VueJS, AngularJS and Bootstrap from the early stage.
Follow Me: Github Twitter
***Do you want me hire for your Project Work? Then Contact US.