脑抽把 /root/ 文件删除了.
之后每敲命令,都会提示:
-bash: history: /root/.bash_history: cannot create: No such file or directory
从网上了解到:
.mkdir /root
cp -a /etc/skel/.[!.]* /root
主要是把 /etc/skel/里面的文件拷贝回去就行了。
转自https://blog.csdn.net/minicto/article/details/53693765