登录centos虚拟机后显示-bash-4.1
生活随笔
收集整理的這篇文章主要介紹了
登录centos虚拟机后显示-bash-4.1
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
http://zhidao.baidu.com/link?url=KwpGOdwFw1oxnL71pvPlfRgbRL_IuQeYRzIYJjiDb2SnX0dQye5yUXqHAGSyuD6u2nDgfe85qNdpNxFITlAe3a
跟我的現象一樣 應該是刪了/root 目錄下的文件
通過這樣修復下應該就可以了,到你自己家目錄拷貝bashrc和bash_profile 到/root目錄即可
-bash-4.1# cd /home/shiwenzhao 我的家目錄
-bash-4.1#cp ./.bashrc /root
-bash-4.1#cp ./.bash_profile /root
-bash-4.1#su - shiwenzhao
[shiwenzhao@localhost ~]$ su -
[root@localhost ~]#
跟我的現象一樣 應該是刪了/root 目錄下的文件
通過這樣修復下應該就可以了,到你自己家目錄拷貝bashrc和bash_profile 到/root目錄即可
-bash-4.1# cd /home/shiwenzhao 我的家目錄
-bash-4.1#cp ./.bashrc /root
-bash-4.1#cp ./.bash_profile /root
-bash-4.1#su - shiwenzhao
[shiwenzhao@localhost ~]$ su -
[root@localhost ~]#
總結
以上是生活随笔為你收集整理的登录centos虚拟机后显示-bash-4.1的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: GotGitHub建立主页
- 下一篇: LoadRunner 常用C语言函数使用