Path, Wash,, Reavver

Nils Kassube kassube at gmx.net
Sun Sep 28 18:42:46 UTC 2014


Grizzly wrote:
> 1) how to set the default $PATH for terminal, I have tried ~sudo
> visudo, which
> shows only the standard usr/bin: usr/sbin... but when I'm in terminal
> "SudoEcho PATH" & "Echo $PATH" both show a longer line including
> "/Game/"
>
> I don't have a game folder/directory so I would like to edit that on a
> perminant basis and add my /home/scripts folder in its place

I think the default PATH is set in "/etc/environment". But you can 
change it for individual users in "$HOME/.bashrc". I would suggest to 
use this option because the other file might be replaced by updates. And 
what is more important: The default is probably used for root as well 
and if you add your scripts directory, you might make root excute one of 
your scripts. That is probably not what you want. With visudo you would 
edit the sudoers file which has a totally different purpose.


Nils





More information about the ubuntu-users mailing list