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 Answer 1

4

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

3
  • That does not appear to make a difference - please see my edit Commented Jul 21, 2014 at 20:59
  • No, do not change environment variables in .bashrc. It doesn't work (variables set there won't be defined in programs that aren't started via a terminal). @AndroidAddict Don't accept answers that didn't help you! Commented Jul 21, 2014 at 23:10
  • @Gilles better? Commented Jul 21, 2014 at 23:11

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.