Common Linux directories

​I will list and I will give brief explanation of common Linux directories.


Beginning of Linux file system starts with forward slash symbol. All other directories and files reside in this directory.

/root is a home directory of a root user. 


/etc directory contains configuration files for different applications.


/home directory is the location of user files. Each user in this system will get a separate directory. Each user home directory permissions allow only that specific user to access content of that directory.


/mnt is a directory where other media is mounted.


/media is a directory where other media is mounted and accessible in this system. For example a flash drive will be mounted here.


/bin is a location of executable files. It can be compared with “Program Files” folder in Windows.


/lib this folder is the location of shared or library files. These files are similar to DLLs in Windows OS


root user is able to access and edit content of these folders, however it is good idea to restrict root account usage only to operations that require root access, typical operations need to be performed by a regular user. root user has too much control in the system so that if that user is compromised than a lot of damage can be done to that system.

Comments

Popular posts from this blog

Absolute and relative path in HTML pages

Errors

goto PHP operator