1.modify "/etc/profile" file.
#vi /etc/profile
Press "i" key to enter editing status and move cursor to the end of the file,Additional entries:
export PATH=$PATH:/path/to/dir;
Press "Esc" key exit edit status,':wq' save the file.
2.Make configuration effective
source /etc/profile
Explain:
profile file works for all users,if you want to be valid only for the active user, set the ".bashrc" file