Linux的错路出口。如何恢复〜/ .bashrc的文件 [英] Linux wrong path exported. How to recover ~./bashrc file

查看:546
本文介绍了Linux的错路出口。如何恢复〜/ .bashrc的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

虽然我尝试设置 java的路径〜我喜欢导出/ .bashrc中文件:

PATH=/usr/local/jdk1.6.0/bin
export PATH

我的猜测使所有其他路径missing.So这让我像任何CP的核心指挥不灵。我知道默认的〜/ .bashrc中文件将在那里对<$​​ C $ C>的/ etc / skel中。但是,由于没有工作我共同的意见我不能复制它。有什么办法可以恢复原来的〜/ .bashrc中

which I guess makes all the other path missing.So it makes me any of the core command like cp not working. I am aware the default ~./bashrc file will be there on /etc/skel. But since none of the common comments working i am not able to copy it. Is there any way we can revert original ~./bashrc?

推荐答案

将是这样的:

PATH=/your/jdk/bin/path:${PATH}
export PATH

这样,你的路径得到的 prepended 的到正规的 PATH 环境。

和根本注销并重新登录,以重置您的环境。
或者键入:

And simply log out and log back in to reset your environment. Or type this:

export PATH=/usr/bin:/usr/local/bin

或本

. /etc/profile

重新加载一个基本的环境,如果你不能得到一个编辑器,现在的工作。

to reload a basic environment if you can't get an editor to work right now.

这篇关于Linux的错路出口。如何恢复〜/ .bashrc的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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