environment variable settings under Linux 1) environment variables that work for the current specific user
vi ~/.bashrcexport PATH="$PATH:/NEW_PATH"
2) Linux system environment variable configuration file
2.1) /etc/profile : The first file that is used when the operating system customizes the user environment at logon, which sets the environment information for each user of the system and is executed when the user first logs on.
2.2) /etc/bashrc : bash shell executes this file for each running user. When bash shell it is opened, the file is read:
2.3) /etc/environment : In the second file that the operating system uses when logging on, the system profile sets environment variables for environment files before reading your own.
2.4) ~/.profile : The third file used when logging in is a .profile file, and when the user logs in, the file is executed only once! By default, he sets some environment variables to execute the user's .bashrc files.
2.5) ~/.bashrc : The file contains bash shell bash information that is specific to you and is read when you log on and every time you open a new one shell .
environment variable settings under Linux