I am using Mac OS X Snow Leopard 10.6.8.
My Mac has several volumes with OS X and each volume has several users.
I wish to minimise the work required to ensure that my paths are adequate both for the installed OS and subsequent non-Apple additions by updating /private/etc/paths
.
Is there a way to determine where executables requiring a path reside or should reside?
Is it practical to move items to a directory in the path?
My /private/etc/paths
contains:
/usr/bin
/bin
/usr/sbin
/sbin
/usr/local/bin
echo $PATH
produces:
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
However the above are not adequate for some applications.
A search for directories named sbin
produces many hits including:
/usr/local/sbin
Should the various share directories be in the path?
Searching for directories containing executables with the following find command produces over 8,000 hits and is clearly not a viable approach.
find / -perm +0111 -type d
/usr/local/bin
. – Allan Jul 3 '18 at 14:58