设置了错误的路径,现在.bashrc引发错误 [英] Wrong path set and now .bashrc throws errors

查看:127
本文介绍了设置了错误的路径,现在.bashrc引发错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为安装过程的一部分,我必须将某些目录添加到默认PATH.我错误地给出了错误的路径,然后重新启动了系统.现在什么都没有了(ls,vim,vi等),因为我弄乱了.bashrc文件.谁能告诉我如何撤消此操作.

As a part of an installation process I had to add certain directories to the default PATH. I have given wrong path by mistake and rebooted the system . Now nothing (ls,vim,vi etc) works since I have messed up my .bashrc file. Can anyone tell me how to undo this.

预先感谢

推荐答案

PATH="/usr/sbin:/usr/bin:/sbin:/bin"

然后修复您的.bashrc

then fix your .bashrc

这篇关于设置了错误的路径,现在.bashrc引发错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆