求助,谁贴一下root的,bash_profile和bashrc啊?
时间:2005-11-14
来源:互联网
我不小心把root的目录清空了,现在用root登录后,
提示符变成bsh-3.3.0#了,而且PATH也不对了,
周围也没人用 mandriva了,
帮帮忙啊大家~~2006版本的
提示符变成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
我贴一下
# .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 才行。。。。
再帮我看看阿~~~~
你这是是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
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28