osx - difference between ~/bin vs /usr/local/bin on mac -
i have few exec scripts want run on command line.
which folder should place them in ~/bin
or /usr/local/bin
?
what difference between both of these folders?
which used when?
use ~/bin (or similar location inside home directory) if want scripts available only user account (not other user accounts, including root). essentially, this'd personal bin folder can whatever want without disturbing other users. you'll have add path (in ~/.bash_profile, ~/.profile, or whatever).
if want scripts available under user accounts or don't have other user accounts or don't care, use /usr/local/bin instead. this'll save hassle of editing path, , more standard location.
Comments
Post a Comment