When I launch a terminal in ubuntu I get following path on echo $PATH
/home/myuser/anaconda3/condabin:/home/myuser/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
I want to remove those paths with games keyword from my $PATH
, but I couldn't find from where the path like /usr/games
, /user/local/games
, /usr/sbin
are set.
I tried to grep by grep xxx ~/.* -l
This gives files which set /usr/bin
, /usr/local/bin
etc..
But not for the above mentioned games
and sbin
paths.
How do I find from where it's set?