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

Popular posts from this blog

Nginx Proxy & Load Balance & LNMP

Snort+barnyard2+Snorby CentOS 6.5_64 Installation

ORACLE Error