Where is the correct place to store user-local executable files?
echo $PATH
gives
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
It doesn't include eg. $HOME/bin
Would $HOME/bin
be advisable? Or $HOME/opt/bin
....
I guess I would have to add that to my .profile too?
mkdir ~/bin
, log out and log back in and it'll be there.PATH
non-writable, as writable bin directories are a major security hole.~/.local/bin
. My PATH didn't include this location when it was empty. But I added a binary to it, rebooted, and it was automatically added to$PATH
. If it's for all users of the machine, then/usr/local/bin
.