/usr/local
is for stuff that you don't want destroyed when you upgrade the operating system.
The OS is free to blow away anything it wants in /usr/bin
et al, the local variation was set up to prevent this from destroying your non-OS stuff.
And, by placing all this local stuff (bin
, etc
, and so on) under one control point, it makes backing up of a site very easy (as opposed to having to get /bin
, /etc
, /lib
and so on for the OS stuff) - you just back up the entire /usr/local
hierarchy.
If you echo $PATH
, you'll probably find that /usr/local/bin
is there. Alternatively, try which PROG
(replacing PROG
with your actual program name) to see where it's being found:
pax> pwd
/home/pax
pax> echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin
pax> ls /usr/local/bin/ico*
iconv
pax> which iconv
/usr/local/bin/iconv
pax> iconv -?
Usage: iconv [-c] [-s] [-f fromcode] [-t tocode] [file ...]
or: iconv -l
Try 'iconv --help' for more information.