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
|
PATH=$PATH:/usr/sbin
|
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 08:00 PM. |