以下摘自IBM AIX网站,使用顺序详情如下。http://publib.boulder.ibm.com/in ... ta/etc_env_file.htmThe /etc/environment, /etc/profile, and .profile files are run once at login time. The .env file, on the other hand, is run every time you open a new shell o...
显示全部以下摘自IBM AIX网站,使用顺序详情如下。
http://publib.boulder.ibm.com/in ... ta/etc_env_file.htm
The /etc/environment, /etc/profile, and .profile files are run once at login time. The .env file, on the other hand, is run every time you open a new shell or a window.
* /etc/environment file
The first file that the operating system uses at login time is the /etc/environment file. The /etc/environment file contains variables specifying the basic environment for all processes.
* /etc/profile file
The second file that the operating system uses at login time is the /etc/profile file.
* .profile file
The .profile file is present in your home ($HOME) directory and lets you customize your individual working environment.
* .env file
A fourth file that the operating system uses at login time is the .env file, if your .profile contains the following line: export ENV=$HOME/.env
收起