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. – Sergey Sep 20 '12 at 21:07PATH
non-writable, as writable bin directories are a major security hole. – Vladislav Ivanishin Sep 20 '16 at 16:11~/.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
. – Daniel Apr 24 '22 at 20:49