Linux Directory Structure
Linux Directory Structure
1. / Root
Every single file and directory starts from the root directory.
Only root user has write privilege under this directory.
Please note that /root is root users home directory, which is not same as /.
Contains binaries, libraries, documentation, and source-code for second level programs.
/usr/bin contains binary files for user programs. If you cant find a user binary under /bin, look
under /usr/bin. For example: at, awk, cc, less, scp
/usr/sbin contains binary files for system administrators. If you cant find a system binary under
/sbin, look under /usr/sbin. For example: atd, cron, sshd, useradd, userdel
/usr/lib contains libraries for /usr/bin and /usr/sbin
/usr/local contains users programs that you install from source. For example, when you install
apache from source, it goes under /usr/local/apache2
Contains library files that supports the binaries located under /bin and /sbin
Library filenames are either ld* or lib*.so.*
For example: ld-2.11.1.so, libncurses.so.5.7