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

Share Me
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

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 Shahriar Sagor

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

View all posts by Shahriar Sagor →