uri*_*rig 5 windows bash windows-subsystem-for-linux
我错误地.bashrc使用 Windows 文本编辑器 (Notepad++) 为我的 WSL(Linux 的 Windows 子系统)Bash编辑了文件。
现在,每当我运行 Bash 时,都会出现以下错误:
bash: /root/.bashrc: 输入/输出错误
我怎样才能解决这个问题?我尝试使用 Linux 文件结尾(仅 LF)进行保存,但这没有用。
我找到了解决问题的最小方法。我的 WSL 正在运行 Ubuntu。在 Ubuntu 中,有一个原始.bashrc的/etc/skel.
.bashrc。cp /etc/skel/.bashrc ~/(基于此 AskUbuntu 答案:https://askubuntu.com/questions/198730/how-to-restore-bashrc-file)
| 归档时间: |
|
| 查看次数: |
8526 次 |
| 最近记录: |