-bash-4.1# less /etc/profile profile profile.d/ -bash-4.1# less /etc/profile -bash-4.1# cat /proc/sys/vm/swappiness 60 -bash-4.1# free -g total used free shared buffers cached Mem: 27 27 0 0 0 12 -/+ buffers/cache: 14 13 Swap: 4 3 0 -bash-4.1# free -m total used free shared buffers cached Mem: 28200 28018 181 0 141 12993 -/+ buffers/cache: 14883 13316 Swap: 4195 3373 822
错删了一些文件,bash下的提示符变成了这个样
-bash-4.1#
这是因为丢失了用户目录下的配置文件
.bash_profile .bashrc
不建议去纯手敲恢复,系统环境下其实已经放置了模板,只需拷贝到自己家目录下即可
/etc/skel/
从/etc/skel/目录下copy .bash_profile .bashrc两个文件即可
cp -a .bash_profile ~/ cp -a .bashrc ~/
大功告成。