/etc/profile 针对系统中的每个用户,首次登录时被一次执行; /etc/bashrc 每次运行bash shell的用户都执行此文件,当bash被打开时,该文件被读取; ~/.bash_profile 专用于本用户的shell信息,仅被执行一次; ~/.bashrc 本用户的bash信息,登录及每次打开shell时被读取。 执行顺序 /etc/profile -> ~/bash_profile -> ~/bashrc -> /etc/bashrc