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

We know that many users are use ubuntu OS and also many user face one of the common problem in several time as like “corrupt history file in zsh” we know most of time face this problem when reboot our OS so, here we will know about 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

Read Also : How to convert line breaks to br in jQuery ?

Thanks for read. I hope it help you. For more you can follow us on facebook.

About Md. Mostofa Kamal

My name is Md. Mostofa Kamal. I'm a developer. I live in Bangladesh and I love to write tutorials and tips that will help other developers. I am a big fan of PHP, Javascript, JQuery, Laravel, Codeigniter, VueJS, AngularJS, and Bootstrap from the early stage.

View all posts by Md. Mostofa Kamal →