I often write system-wide scripts and I wonder where to place my executables on macOS.
On many Linux system,
/usr/local/sbin) is usually empty and I place my executables in there.
But on macOS,
/usr/local/bin has already contained a lot of executables provided by such as Homebrew.
/usr/local/bin is the most proper directory to place executables locally installed and similar questions also are answered
/usr/local/bin, but I feel hesitant to contaminate by mixing my executables.
Is it good manner to place my executables in
/usr/local/bin in spite of many other executables existing?
In other way, I am wondering where is the second best directory to place my executables.
/opt/bin is the second best at the moment because
/opt/bin seems to proper directory to place my executables by its purpose and
/opt/bin does not exist by default on macOS (empty assured).
Is there any idea or advice about my wondering?
similar questions (answered
/usr/local/bin is best):