Skip to main content

Understanding Kernel, Distros and File Systems of Linux

 


I hope many of you are familiar with the term "Linux". But my question is what is Linux?

Some of you will say Linux is an OS while some of you will say Linux is a kernel.

Actually, Linux is a kernel and not an OS. So, first, let's understand what a kernel is. Then the difference between OS and kernel.

Kernel

A kernel is one of the system software in Operating Systems which acts as a bridge between applications and hardware components.

Operating System vs Kernel

  • The operating system is a bridge between user and hardware while Kernel is a bridge between applications and hardware.
  • An operating system is a system software while Kernel is a software which is a part of the OS.
  • All operating systems need a kernel to run.
  • When you boot the computer, OS is the first program that loads while the kernel is the first program that loads when OS loads.
  • Example of the kernel: Linux 
  • Examples of OS: Ubuntu, Fedora, Kali

Linux Distributions


Linux Distributions or Linux Distros are the operating systems that include the Linux kernel. Linus Torvalds developed the Linux kernel and released its first version 0.01 in August 1991. The earliest distro was MCC Interim Linux released in February 1992. There are almost one thousand Linux distros.
There are some famous distros such as Debian, Slackware, RedHat and Arch Linux.
Some famous distros like Ubuntu, Kali and Parrot are Debian based Linux distros. For a more detailed understanding of Linux distros, watch the image in the link below.

 

From each distro, multiple distros were created based on it like based on RedHat, CentOS was created. Based on Debian, Ubuntu was created. Based on Ubuntu, distros like Ubuntu GNOME, Kubuntu, and Gobuntu were created.

File Systems

  • /   - It is a root directory.

  • /bin - This is where the executable files are located.

  • /dev - These are device drivers

  • /etc -  The configuration files of BIOS and other similar files can be found in /etc. 

  • /lib - Contains shared library files and sometimes other kernel-related files.
  • /boot - Contains files for booting the system.


  •  /home - Contains home directory for users

  • /mnt - Used for mounting temporary file systems.
  • /proc - Contains all processes as a file by process number.


  • /tmp - Contains temporary files.

  • /usr - The /usr directory is used to contain applications and files that are used and shared by and between users.

  • /var - The /var directory is used like the /usr directory, only instead of being read-only, it is writable. This directory contains system logs and other various variable data.

  • /sbin - Contains executable files, usually for system administration.


  • /media - Contains subdirectories where your physical media devices are mounted. For example, a CD, if inserted into your system, you can access its contents through its directory that is created in the /media directory upon insertion.


I hope you might have got a clear understanding of Kernel, Distros and the file system of Linux. Happy reading!

Comments

Popular posts from this blog

Getting started with WSL

I recently started learning Linux operating system. I have a windows machine. I searched for what are the possible ways available to work with Linux. I ended up with more ways to install Linux and work with it. WSL is one of the simplest ways to get started with Linux on windows. So, I'll be sharing my learnings about WSL. It's obvious that to learn Linux one should have a Linux-based machine to work with and execute commands. There are four possible ways to get started with Linux. Possible ways to work with Linux Building a Linux-based computer which is quite expensive. I myself don't prefer to build a machine when I am a Student. Installing and using Linux in dual boot mode with your existing Windows using a virtual box. This is one of my preferred ways but it consumes more storage. So, this too fails. And the next way is to create instances in cloud platforms like AWS, GCP, and Azure and using remotely. Also, there is no cost associated with it. Because major cloud platf...

Elasticsearch- II

 ELASTICSEARCH                                          In this blog we are going to learn how to use elasticsearch and kibana using python. Before getting into this, make sure that you have elasticsearch and kibana installed. To know the detailed procedure about the installation of elasticsearch and kibana, click the link below to learn the installation process from scratch. https://crescenttechnocratsclub.blogspot.com/2022/09/blog-post.html For python, let’s use VS Code . Visual Studio (VS) Code is a streamlined code editor with support for development operations like debugging, task running, and version control. Python IDLE is also fine to use but we will work with vs code in this blog. Install VS code using the following link : https://code.visualstudio.com/download Click op...

Why you need Linux Right Now!

  Introduction Linux is an open-source operating system created in 1991 by Linus Torvalds. It's an alternative to the more popular Windows and Mac operating systems, and it comes with a wide range of features that make it a great choice for everyone, from beginners to seasoned professionals. In this blog, we'll discuss what Linux is, what it can offer you, and why you should start using it today. What Is Linux? Linux is used today by millions of people worldwide, including large corporations, small businesses, government organizations, and individuals. There are many reasons why you should use Linux. Here are a few: Linux is stable and secure. It is less likely to crash or become infected with a virus than Windows. Linux is customizable. You can change the look and feel of Linux to suit your needs, and you can add or remove software to create the perfect operating system for you. Linux is free. There are no licensing fees required to use Linux, and there are many free applicati...