Home

usrlocalbin

The directory /usr/local/bin is a standard subdirectory in the root of Unix-like operating systems used to store executable programs that are locally installed by the administrator rather than part of the core OS distribution. It is a key element of the Filesystem Hierarchy Standard (FHS) and is intended to be writable by root and contain architecture-specific binaries.

It commonly hosts scripts and compiled programs installed from source, binaries obtained from third-party vendors, or

The environment PATH usually includes /usr/local/bin, often ahead of /usr/bin and /bin. This means a program named

The directory is typically owned by root with permissions such as 755; installation of new binaries should

On macOS, Homebrew commonly uses /usr/local/bin for user-installed software. On some distributions, the directory may be

package
manager
installations
that
place
executables
in
this
location.
Files
there
should
be
independent
of
the
distribution's
package
manager
to
avoid
conflicts
during
system
upgrades.
foo
found
in
/usr/local/bin
will
be
executed
in
preference
to
a
similarly
named
binary
in
the
system
directories.
If
needed,
users
can
modify
PATH.
be
performed
with
appropriate
privileges.
In
multi-user
environments,
it
may
be
prudent
to
maintain
proper
checks
to
avoid
inadvertently
overriding
system
utilities.
absent
or
empty
until
created.
The
name
often
appears
as
"usr
local
bin"
in
documentation
without
slashes.