Linux path
1. Temporary change path:
export PATH=/opt/puppet/bin:$PATH
2. Permanent change path:
root user:
A. cd
B. vi .bashrc add following content at the end of the file:
export PATH=/opt/puppet/bin:$PATH
other user:
A. cd
B. vi .bash_profile add following content at the end of the file:
export PATH=/opt/puppet/bin:$PATH
3. Permanent change path:
cd /etc/profile.d/
vim nginx.sh
export PATH=/usr/local/nginx/sbin:$PATH
Comments
Post a Comment