when checking my $PATH on ubuntu (16.04) I get a long list of directories, few of which even do not exist in my file system, and some of them I just don't need:
echo $PATH
.../usr/games:/usr/local/games:/snap/bin
where they are created and how can I remove them? I wnant to control the creation of the $PATH, rather than correct it later by the tricks described in https://unix.stackexchange.com/questions/108873/removing-a-directory-from-path