1

I have updated the PATH environmental variable on a Redhat distribution but after reboot, the path is gone.

To add the path:

PATH=/opt/rh/mysql55/root/usr/bin
export  PATH  

echo $PATH
/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/opt/rh/mysql55/root/usr/bin

reboot removes the path

echoing after

/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
4

To make changes in environment path persistent, add that lines with export to your .profile file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.