5

I install .zip / .tar.gz programs in ~/.local/bin, but Ubuntu have /usr/local directory with content same as in ~/.local.

So, what is difference between this directories except for sudo access?

2 Answers2

8

/usr/local is a place where software usable by all users can be installed by an administrator.

~/.local/bin is a place where a user can install software for their own use.

There is some messiness in the history of the directory structure used in different distros and communities, but this covers the basic differences.

Jeremy
  • 2,846
4

The ~/.local is intented for user-only use for example by installing a 3rd-party software that does not come from the repositories in ~/.local/bin you will have it access you and only you.

Whilst the /usr/local is intented for stuff that is used for more that one user. For example /usr/local/bin has executabled that are 3rd-party but from repositories and are available to all users.