如果重新载入文件报错,或者无法载入文件,有可能就是你的profile文件出错,有可能是被你无意间改动了什么内容,建议将原文件内容删除干净后,贴入下方代码。
# /etc/profile
# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc
# It's NOT a good idea to change this file unless you know what you
# are doing. It's much better to create a custom.sh shell script in
# /etc/profile.d/ to make custom changes to your environment, as this
# will prevent the need for merging in future updates.
pathmunge () {
case ":${PATH}:" in
*:"$1":</