Linux Binary DirectoryBinary files are the files which contain compiled source code (or machine code). They are also called executable files because they can be executed on the computer. Binary directory contains following directories:
/binThe '/bin' directory contains user binaries, executable files, Linux commands that are used in single user mode, and common commands that are used by all the users, like cat, cp, cd, ls, etc. The '/bin' directory doesn't contain directories. Example: Look at the above snapshot, command "ls /bin" displays the list of '/bin' directory. Commands like cp, cat, less, touch, etc can be seen in the snapshot. /sbinThe '/sbin' directory also contains executable files, but unlike '/bin' it only contains system binaries which require root privilege to perform certain tasks and are helpful for system maintenance purpose. e.g. fsck, root, init, ifconfig, etc. Example: Look at the above snapshot, command "ls /sbin" displays the list of '/sbin' directory. /libThe '/lib' directory contains shared libraries which are often used by the '/bin' and '/sbin' directories. It also contains kernel module. These filenames are identable as ld* or lib*.so.*. For example, ld-linux.so.2 and libfuse.so.2.8.6 Example: Look at the above snapshot, command "ls /lib" displays the list of '/lib' directory.
/optThe term 'opt' is short for optional. Its main purpose is to store optional application software packages. Add-on applications from individual vendors should be installed in '/opt'. And so in some systems '/opt' is empty as they may not have any add-on application.
Next TopicLinux Configuration Directory
|