首先先切换到普通账号的home目录
例如:
当前为root权限
cd /home/maple
执行如下命令,将缺失的配置文件拷贝到指定位置即可
1 |
cp ./.bashrc /root |
1 |
cp ./.bash_profile /root |
然后切换账号
su maple
然后再切换回root
su
搞定….
Latest posts by Zhiming Zhang (see all)
- ReplicationController and ReplicaSet in Kubernetes - 12月 20, 2021
- public key fingerprint - 5月 27, 2021
- Index brackets must contain either a literal number or a literal string.terraform taint - 5月 20, 2021