首先先切换到普通账号的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)
- aws eks node 自动化扩展工具 Karpenter - 8月 10, 2022
- ReplicationController and ReplicaSet in Kubernetes - 12月 20, 2021
- public key fingerprint - 5月 27, 2021