Why /usr/local/bin isn't in the path by default?

When I install third-party stuff on my Ubuntu, the default prefix is /usr/local, however, this path isn't on the PATH by default.

How should I put it on the PATH for all users and why isn't the default behaviour?

1 Answer

What version of Ubuntu are you running?

What do you see when you run this?:

$ more /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"

Or are you saying that the executable file gets installed directly in /usr/local/[CMDNAME] rather than in /usr/local/bin/[CMDNAME] ?

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like