LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Suse/Novell (http://www.linuxquestions.org/questions/suse-novell-60/)
-   -   Add path to $PATH variable (http://www.linuxquestions.org/questions/suse-novell-60/add-path-to-%24path-variable-720190/)

alaios 04-19-2009 08:24 AM

Add path to $PATH variable
 
Hi everyone. I am trying to figure out how i can add the path /usr/sbin/ into the $PATH variable. I want this to be used from the normal account. I am bored settinh this manualy each time my computer starts so annny help would be appreciated

Zmyrgel 04-19-2009 08:40 AM

PATH=$PATH:/usr/sbin

ccargo 04-19-2009 08:41 AM

Hi,

You can put your path-command (that you usually set manually) in your shell config. file. If you're using bash you should have (or create) a .bashrc in your home directory. Other shells have similar files, Zsh has a .zshrc etc. It will be run when you start a terminal. If you don't want to restart your shell after editing the config file just type <code>source .bashrc</code>.


All times are GMT -5. The time now is 12:19 AM.