LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   adding to $PATH (https://www.linuxquestions.org/questions/linux-newbie-8/adding-to-%24path-247762/)

poiuytrewq 10-27-2004 12:35 AM

adding to $PATH
 
how do i perminintly add to my bash $PATH? it does not have /usr/sbin so it is a bit of a pain every time i want to run something from there.

thanks

thrice 10-27-2004 01:05 AM

export PATH=$PATH;/usr/sbin should do it

actually....i'm having a brain fart and can't remember whether the directories in path are delimited with a ; or a : run 'set' in console and see what are in between the directories in the PATH variable.. i'd take a quick look right now, but i'm not at my computer.

dugas 10-27-2004 01:08 AM

edit .bashrc

poiuytrewq 10-27-2004 01:32 AM

thanks

ps its colon not semi-colon


All times are GMT -5. The time now is 07:42 AM.