+ -
当前位置:首页 → 问答吧 → 求助,谁贴一下root的,bash_profile和bashrc啊?

求助,谁贴一下root的,bash_profile和bashrc啊?

时间:2005-11-14

来源:互联网

我不小心把root的目录清空了,现在用root登录后,
提示符变成bsh-3.3.0#了,而且PATH也不对了,
周围也没人用 mandriva了,
帮帮忙啊大家~~2006版本的

作者: lof   发布时间: 2005-11-14

应该不关事的啊,清空用户目录和这个无关的

我贴一下
# .bashrc

# User specific aliases and functions

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

# enable programmable completion features
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi


# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH
unset USERNAME

作者: maramail   发布时间: 2005-11-14

哈,变成正常的提示符了,不过path还是不对。。。。
你这是是root的吗?root的应该是没有这行的啊?PATH=$PATH:$HOME/bin
从安全角度出发,不应该有$HOME/bin这个目录
现在不能用urpmi,。。。。得用/usr/sbin/urpmi 才行。。。。
再帮我看看阿~~~~

作者: lof   发布时间: 2005-11-14

不是ROOT,你自己改就是了

作者: maramail   发布时间: 2005-11-14

这个。。。水平有限啊,不会改啊。。。。
字体弄乱了,准备从装了

作者: lof   发布时间: 2005-11-14