Ubuntu environment variable configuration file (to), ubuntu environment variable
Original article:Http://www.cnblogs.com/eastson/archive/2012/06/15/2550151.html
Environment variables can be set in the following files in Ubuntu:
/Etc/profile: The first file used by the operating system to customize the user environment during login. This file sets environment information for each user in the system. When the user logs on for the first time, the file is executed.
/Etc/environment: the second file used by the operating system during logon. Before the System reads your own profile, it sets the environment variable of the environment File.
~ /. Profile: The third file used for logon is. profile file. Each user can use this file to input shell information dedicated to their own use. When a user logs on, this file is only executed once! By default, it sets some environment variables to execute the user's. bashrc file.
/Etc/bashrc: execute this file for every user running bash shell. When bash shell is opened, the file is read.
~ /. Bashrc: This file contains bash information dedicated to your bash shell. This file is read when you log on and every time you open a new shell.