Search Results for: linux directory structure

Linux directory structure: /lib explained

We already explained other important system folders like /bin, /boot, /dev, /etc etc folders in our previous posts. Please check below links for more information about other stuff which you are interested. In this post, we will see what is /lib folder all about. Linux Directory Structure explained: /bin folder Linux Directory Structure explained: /boot folder Linux Directory Structure explained: /dev folder Linux Directory Structure explained: /etc folder Linux Directory Structure explained: /lost+found folder Linux Directory Structure explained: /home folder   What is /lib folder in Linux? The lib folder is a library files directory which contains all helpful library files used by the system. In simple terms, these are helpful files which are used by an application or a command or a process for their proper execution. The commands in /bin or /sbin dynamic library files are located just in this directory. The kernel modules are also located here. Taken an example of executing pwd command. It requires some library files to execute properly. Let us prove what is happening with pwd command when executing. We will use the strace command to figure out which library files are used. Example: root@linuxnix:~# strace -e open pwd open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3 /root +++ exited with 0 +++ root@linuxnix:~# If you observe, We just used open kernel call for pwd command. The pwd...

Read More

Linux directory structure: /home and /root folders

This is our 6th post on understanding first level directories in /. Knowing these folders in detail or at least what each is meant for will help you understand Linux/Unix in whole. we already covered below directories, please have a look at those to understand them. In this post we will see two more directories ie /home and /root directory. These directories are meant for similar purpose. The /root is meant for just root user and /home is for all the remaining users. Linux Directory Structure explained: /bin folder Linux Directory Structure explained: /boot folder Linux Directory Structure explained:...

Read More

Linux directory structure:/etc explained

ETC is a folder which contain all your system configuration files in it. Then why the etc name? “etc” is an English word which means etcetera i.e in layman words it is “and so on”. The naming convention of this folder is having some interesting history. The history of /etc folder in Linux/Unix In initial days of UNIX OS development there is a folder for each type of data like /bin folder for all your executable binaries /boot folder for all booting related information. /dev folder for all hardware devices attached to machine. But people encountered a situation to keep some files which...

Read More

Over 16,000 readers, Get fresh content from “The Linux juggernaut”

Email Subscribe

ABOUT ME..!

My photo
My name is Surendra Kumar Anne. I hail from Vijayawada which is cultural capital of south Indian state of Andhra Pradesh. I am a Linux evangelist who believes in Hard work, A down to earth person, Likes to share knowledge with others, Loves dogs, Likes photography. At present I work at Bank of America as Sr. Analyst Systems and Administration. You can contact me at surendra (@) linuxnix dot com.