linux 服务器su 之后变成bash-4.1# 2013/11/23 | 基本知识,运维 | Zhiming Zhang | 暂无评论 | 2663 views 首先先切换到普通账号的home目录 例如: 当前为root权限 cd /home/maple 执行如下命令,将缺失的配置文件拷贝到指定位置即可 Default cp ./.bashrc /root 1 cp ./.bashrc /root Default cp ./.bash_profile /root 1 cp ./.bash_profile /root 然后切换账号 su maple 然后再切换回root su 搞定……