echo $PATH provides:
/usr/local/sbin:/usr/local/bin:/usr/bin:/sbin:/bin
while /etc/environment states
PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
I though the environment file is responsible for setting the PATH environment. I mean the file is called environment, and the only commend therein is path. What am I missing?
This is Ubuntu 18.04.1 and when I try to run pcsxr, it tells me /usr/games is not added to environment variable. This seems true from one point of view and false from another point of view. There is no problem with the desktop file, it has been validated. Also that game in question has been validated to be at /usr/games
Running this command:
$ grep --color -H 'PATH=' ~/.bashrc ~/.profile ~/.bash_profile ~/bash.login \
~/.bash_aliases /etc/bash.bashrc /etc/profile \
/etc/profile.d/* /etc/environment 2> /dev/null
/home/neonred811/.profile: PATH="$HOME/bin:$PATH"
/home/neonred811/.profile: PATH="$HOME/.local/bin:$PATH"
/etc/environment:PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
whereis $PATHmakes no sense, so the rest of that is irrelevant. Also, show us the output you got from running thegrepin the linked post. Also, how did you install Ubuntu? Is this a VPS or a VM or similar? – muru Aug 19 '18 at 08:47/etc/environmentnot being sourced. Since any of config files may source other files, it's isn't guaranteed where exactly that variable is overwritten. I'd say, just add that directory into your PATH via~/.bashrcand forget the trouble. But of course if you wanna find what actually happened, grep through everything for files being sourced, and then grep through those – Sergiy Kolodyazhnyy Aug 19 '18 at 09:12vi ~/.bashrcsource /etc/environment– Jairelee Aug 19 '18 at 11:16