ZSH出现问题:corrupt history file /home/XXX/.zsh_history
来源:互联网 发布:java求圆周率 编辑:程序博客网 时间:2024/06/05 15:42
ZSH出现问题
问题:
报下面错误
zsh: corrupt history file /home/XXX/.zsh_history
问题说明:
zsh是一个相当好用的shell,相信使用linux系统的朋友都不陌生,当然还有my zsh,不过有的时候会出现一些问题,例如因为有的时候系统因为默写原因强行启动的时候会破坏zsh的历史文件,导致下次使用的时候提示:zsh: corrupt history file /home/xxx/.zsh_history错误。
我们有一种暴力的解决方式,那就是删除,但是这样的话,我们以前的很多的历史命令就会没有,非常的麻烦。
解决方法:
cp .zsh_history zsh_historyrm -f .zsh_history strings zsh_history .zsh_history#OK了,修复成功。
1 0
- ZSH出现问题:corrupt history file /home/XXX/.zsh_history
- zsh: corrupt history file /home/floodlight/.zsh_history
- How to fix and recover a “corrupt history file” in zsh?
- [Linux] zsh corrupt
- 出现 “/home/xxx/.gvfs”的解决方法
- ZSH-brew时出现的权限问题
- 制作U盘启动盘安装系统时出现inf file txtsetup.sif is corrupt or missing status 18的问题
- git 出现stderr: error: bad signature fatal: index file corrupt
- Myeclipse出现the jar file xxx.jar has no source attachment. 问题
- Vmware corrupt file
- java -jar xxx.jar命令执行jar包时出现Error: Invalid or corrupt jarfile xxx.jar解决方案
- 解决zsh中无法正常使用home和end等键的问题
- 附加依赖库设置错误,出现invalid or corrupt file: cannot read at 0x2B0
- Mac 安装 Genymotion 下载虚拟机出现 The file is corrupt 提示问题解决办法
- Mac 安装 Genymotion 下载虚拟机出现 The file is corrupt 提示问题解决办法
- [VSS] VSS出现的是"file name.dat may be corrupt"错误
- 附加依赖库设置错误,出现invalid or corrupt file: cannot read at 0x2B0
- 开机出现Could not update ICEauthority file /home/username/.ICEauthority
- 基于zookeeper、连接池、Failover/LoadBalance等改造Thrift 服务化
- iOS开发之第三方支付支付宝支付教程,史上最新最全第三方支付宝支付方式实现、支付宝集成教程,支付宝实现流程
- 玩转html5 canvas
- 数据结构与算法参考博客
- ElasticSearch——常用网址
- ZSH出现问题:corrupt history file /home/XXX/.zsh_history
- 技术和音乐
- 主成分分析PCA
- 解决slf4j 冲突
- COJ 1010 [001]质因数分解 [EASY]
- Java开源xml操作类库
- C++拷贝构造函数——深拷贝/浅拷贝
- python 3.2 错误 ‘generator’ object has no attribute ‘next’
- ubuntu设置静态ip