
The second export statement tries set the $PATH to some Stata directories but misses the escape character \ before the space and messes up the /Downloads/stata installation/stata as only /Downloads/stata The second export statement resets the $PATH to the default set for directories. The first export statement adds the /Downloads/stata\ installation/stata in the beginning of the default $PATH. In this case modifications where made in /home/$USER/.bashrc.įrom the comments, three export statements were added to /home/$USER/.bashrc: export PATH=/Downloads/stata\ installation/stata:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/gamesĮxport PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/gamesĮxport PATH=/Downloads/stata\ installation/stata15:/Downloads/stata installation/stata
#Pach messed up ryzom software
To find exactly where the $PATH was modified by the improper installation of the software Stata.

This specific way off adding a new directory to the $PATH adds the new directory at the beginning of the existing $PATH variable. Note these statements use the $PATH variable on the right hand side. Typically you add a new PATH statement or an export command like: PATH="/path/to/dir:$PATH"
#Pach messed up ryzom how to
How to permanently change $PATH variable?Ī similar question has been answered before at How to add a directory to the PATH? Where to make the change? I suspect that the /etc/environment file is not the issue and there is another file that I need to change. So when I restart the terminal, basic commands like sudo still doesn't work and I have to do the temporary fix again. When I open the /etc/environment file, it already has that exact path, so nothing is changed. PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" Then I'm supposed to be able to make it permanent by editing the /etc/environment file with sudo nano /etc/environment and making sure that it is Downloads/stata installation/stata15:/Downloads/stata:/usr/bin This other answer says that I can make a permanent fix:įirst, I did export PATH=$PATH:/usr/bin, and which again fixes the problem temporarily. usr/bin:/Downloads/stata installation/stata15:/Downloads/stataīut this fix is temporary and when I restart the terminal, I can't use sudo again. I've tried export PATH="/usr/bin:$PATH" which fixes the problem temporarily (from this answer).
#Pach messed up ryzom install
I suspect I messed up the $PATH variable when trying to install Stata. Downloads/stata installation/stata15:/Downloads/stata

Whenever I try basic commands in the terminal like sudo or ls, I get this error:Ĭommand 'sudo' is available in '/usr/bin/sudo' The command could not be located because '/usr/bin' is not included in the PATH environment variable.
