I. Ordinary users
If some programs are not installed in the system default path (ie/bin/,/usr/bin,/usr/local/bin/), this time ordinary users want to invoke these commands, must set the path. The method is simple: Log in as a normal user and then enter
VI ~/.bash_profile
The following content will appear:
#. Bash_profile
# Get the aliases and functions
If [-f ~/.BASHRC]; Then
. ~/.bashrc
Fi
# User specific environment and startup programs
Export PATH
At this point, just add your own path in front of the export path, for example my modifications are as follows:
[Yyc@localhost bin]$ cat ~/.bash_profile
#. Bash_profile
# Get The aliases and functions
if [-f ~/.BASHRC]; Then
. ~/.BASHRC
fi
# User specific environment and startup programs
path= $PATH:/usr/local/programs/crosstool/gcc-4.0.2-glibc-2.3.6/arm-linux-gnu/bin/
Export PATH
"Linux". Bash_profile