Kyowash wrote:I've noticed my HOME directory will the first to be searched for executable files:
[...
Is this safe?
It's not a good idea. It's set in your
~/.profile
file, (and /etc/skel/.profile) you can change it there (= ~/.profile = /home/username/.profile)
I was getting some bogus entries in the $PATH (/snap or something like that, and ~/.local/bin), and the ~/bin in the wrong place, so I hard-coded in the whole thing in my .profile.
You could put this line at the end of your .profile and fix everything:
Code: Select all
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/kyowash/bin:/home/kyowash/.local/bin"
Assuming you have a ~/.local/bin, which I don't.