Etc/profile:
This file sets the environment information for each user in the system. When the user logs on for the first time, the file is executed and shell settings are collected from the configuration file in the/etc/profile. d directory.
/Etc/bashrc:
Execute this file for every user running bash shell. When bash shell is opened, the file is read.
~ /. Bash_profile:
Each user can use this file to input the shell information dedicated to his 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.
~ /. Bashrc:
This file contains bash information dedicated to your bash shell. This file is read when you log on and each time you open a new shell.
~ /. Bash_logout:
Execute this file every time you exit the system (exit bash shell.
Run # source/etc/profile to make the exported environment variables take effect immediately and avoid restarting