Unis System Resources in directory: /usr
The /usr directory usually contains the largest share of data. It is also called secondary hierarchy as it contains binaries, libraries, documentation for all the user applications.
Listing Directories in it:
$ ls /usr
We will explain some of the
/usr/bin /usr/include /usr/lib /usr/share /usr/local /usr/src
Unix System Resource – /usr/bin
This system /usr/bin directory contains non-essential binary commands for all users. If you can’t find a command in ‘/bin’, search it in ‘/usr/bin’. It contains a lot of commands.
Take a quick look in the /usr/bin directory!
$ ls /usr/bin
Unix System Resource – /usr/include
The Linux /usr/include directory contains standard include files for C.
Take a quick look in the /usr/include directory
$ ls /usr/include
Unis System Resource – /usr/lib
‘/usr/lib’ directory contains libraries that are not directly execute by the users. It contains binaries for the ‘/usr/bin’ and ‘/usr/sbin’.
Take a quick look in the /usr/lib directory:
$ ls /usr/lib
Unix System Resource – /usr/share
The ‘/usr/share’ directory contains architecture independent share data.
$ ls /usr/share
Unix System Resource – /usr/local
‘/usr/local’ directory is used to install software locally. It contains all the user programs that you install from the repository.
$ ls /usr/local
Unix System Resource – /usr/src
The term ‘src’ is short for source. It is used to store source codes, like kernel source codes with its header files.