.bash_profile environment variable settings
.bashrc bash personal configuration
Linux contains two important files /etc/profile and $HOME/.bash_profile. These two files are read whenever the system logs in to initialize the variables used by the system, of which /etc/profile is used by super users , $HOME/.bash_profile is independent for each user, we can modify this file to set some variables.
The command usage is as follows
$ cd (enter user login directory)
$ls –al .bash_profile (.bash_profile is a hidden file, so use the ls –a command to find it)
$vi .bash_profile (edit .bash_profile with vi)
Modify the PATH line in it and add the required path
save and exit