您的位置:首页 > 运维架构 > Shell

linux在shell中[root@]出现-bash-

2011-10-13 11:00 351 查看
在shell中[root@]出现-bash-
解决方案
应该是删了/root 目录下的文件
通过这样修复下应该就可以了,到你自己家目录拷贝bashrc和bash_profile 到/root目录即可
-bash-4.1# cd /home/mysql   我的家目录
-bash-4.1#cp ./.bashrc /root
-bash-4.1#cp ./.bash_profile /root
-bash-4.1#su  mysql
[shiwenzhao@localhost ~]$ su -
[root@localhost ~]#
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: