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

1 Answers1

4

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

enedil
  • 1,674