Common Linux directories

​If you had used Windows operating system, then one of the things that will be unusual to you is naming of file paths.

A file path in Windows starts with a letter of English alphabet, such as C:.

However in Linux, BSD, Apple operating systems, beginning of files is denoted with / (forward slash).

Here are some of the popular folders in these operating systems. (Please note that Apple OS is based on FreeBSD, but files location maybe different.

/ - root - beginning of files and folders structure. It is top level directory.

/bin - user executable files that are important for OS operations. ls or mv is located in it.

/sbin - location of essential executable files for root user. For example reboot file is located in it.

/etc - location of configuration files. Please note that most of configuration files will be placed in subdirectories associated with their programs.

/lib - shared libraries used by applications that are located in /sbin and /bin directories.

/boot - location of boot related files. For example kernel related files will be located there.

/dev - location of device files.

/proc - virtual directory that contains files related to system operations.

/var - var stands for variable. This the location of files that frequently change. For example log files will be located here.

/tmp - location of temporary files for various applications 





Comments

Popular posts from this blog

Absolute and relative path in HTML pages

Errors

goto PHP operator