Linux中切换用户变成-bash4.1-$的解决方法
2017-07-27 16:47
330 查看
原因是root在/root下面的几个配置文件丢失,将/etc/skel/目录下的三个文件拷贝到用户家目录即可
cp /etc/skel/.bashrc /root/
cp /etc/skel/.bash_profile /root/
cp /etc/skel/.bash_logout /root/
或
cp /etc/skel/{.bash_logout, .bash_profile, .bashrc} /root/
cp /etc/skel/.bashrc /root/
cp /etc/skel/.bash_profile /root/
cp /etc/skel/.bash_logout /root/
或
cp /etc/skel/{.bash_logout, .bash_profile, .bashrc} /root/
相关文章推荐
- Linux中切换用户变成-bash4.1-$的解决方法
- Linux中切换用户变成-bash4.1-$的解决方法
- Linux中切换用户变成-bash4.1-$的解决方法
- Linux中切换用户变成-bash4.1-$的解决方法
- Linux中切换用户变成-bash4.1-$的解决方法
- Linux中切换用户变成-bash4.1-$的解决方法【转】
- Linux中切换用户变成-bash4.1-$的解决方法
- linux 切换用户之后变成-bash-x.x$的解决方法
- linux 切换用户之后变成-bash-3.2$的解决方法
- Linux改变用户家目录,登陆后前面变成-bash4.1-$的解决方法
- 切换用户时显示bash4.1-$解决方法
- linux使用su切换用户提示 Authentication failure的解决方法
- linux使用su切换用户提示 Authentication failure的解决方法
- linux使用su切换用户提示 Authentication failure的解决方法& 复制文件时,报cp: omitting directory `XXX'
- 在Linux中切换用户时变成-bash4.1-$
- linux使用su切换用户提示:Authentication failure的解决方法
- linux使用su切换用户提示 Authentication failure的解决方法
- linux su切换用户提示 Authentication failure的解决方法
- linux使用su切换用户提示 Authentication failure的解决方法
- linux普通用户su root切换提示没有文件或目录的解决方法