changes to $PATH don't persist
by levelfourtwenty from LinuxQuestions.org on (#54N3Y)
(Slackware)
I am trying to add /sbin and /usr/sbin to my $PATH but it isn't persisting. I have tried to fix this in two ways, the command "export PATH=$PATH:/sbin:/usr/sbin" and by editing my /etc/profile file. The first method never seems to persist and I have to redo it everytime I open a terminal window and the second has yielded no results, what am I doing wrong and how do I fix it? It may be useful to know that I am doing this as a regular user account.


I am trying to add /sbin and /usr/sbin to my $PATH but it isn't persisting. I have tried to fix this in two ways, the command "export PATH=$PATH:/sbin:/usr/sbin" and by editing my /etc/profile file. The first method never seems to persist and I have to redo it everytime I open a terminal window and the second has yielded no results, what am I doing wrong and how do I fix it? It may be useful to know that I am doing this as a regular user account.