/usr/local/bin VS /usr/bin

Hello All,

I did two ERPNext installation just for learning and getting knowledge. While following exactly the same steps for both installations, I found that:

  • For the first installation, all binaries (including bench) are stored in /usr/local/bin
  • For the second installation, all installed binaries (including bench) are stored in /usr/bin

Anybody knows why and what controls the Path where binaries/executables are getting saved?

P.S. In the installation that stores binaries in /usr/local/bin, I was not able to execute any sudo bench ... command until I included the path in the secure_path list for sudoers.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.