1、root用户的 /etc/profile 2、其他用户也可以用。 生效:切换窗口时 ~/.bash_profile 3、其他用户也可以用 生效:登录 ~/.bashrc 4、远程情况 source 脚本文件