When I type echo $PATH
, I get the output:
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
However, I modified my PATH
variable using gksudo gedit
/etc/environment
; the file now reads PATH="/opt/texbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
.
I am not sure why I am getting two different value of PATH
. How can I fix it?
I am running Xfce on a Chromebook using Crouton.
~/.bashrc
that saysexport PATH=$PATH:...
. All you need to do is add a colon to the end and include the path. Example:export PATH=$PATH:...:/new/path
~/.bashrc
is run every time an interactive shell is opened, while~/.bash_profile
is run when a login shell is opened. Pick which file best suits your needs.