I'm trying to understand the file structure of Linux systems.(At least basic parts).
Now, according to this answer, /usr/local
- directory is for read-only files installed by the local administrator (usually, you). And that's why most directory names from /usr
are duplicated here.
Here is my question - I decided to install g++ compiler. So it is a program which will be installed by me (local admin). However, it has been installed on usr/bin
instead of usr/local/bin
. What is the reason for that?
EDIT
$ which g++
/usr/bin/g++
$ ll $(which g++)
lrwxrwxrwx 1 root root 7 Nis 8 2014 /usr/bin/g++ -> g++-4.8*
which g++
andll $(which g++)
by editing your question.