linux服务器su之后变成bash-4.1#

当前为root权限

cd /home/jboss

执行如下命令,将缺失的配置文件拷贝到指定位置即可

cp ./.bashrc /root

cp ./.bash_profile /root

然后切换账号

su jboss

然后再切换回root

转载于:https://www.cnblogs.com/FCWORLD/p/4866543.html

猜你喜欢

转载自blog.csdn.net/weixin_34401479/article/details/94156226