Linux Operating System

𝗪𝗵𝗮𝘁 𝗶𝘀 𝗢𝗽𝗲𝗿𝗮𝘁𝗶𝗻𝗴 𝗦𝘆𝘀𝘁𝗲𝗺 (𝗢𝗦)

Operating system (OS) is software that manages computer hardware, software resources, and provides common services for computer programs. It helps users to interact with hardware, enabling applications (eg. VLC player, video player, MS office etc) to run. 

eg -

Windows OS, macOS, Linux for Personal Computers / Servers

Android, iOS for mobiles / tablets


𝗜𝗻𝘁𝗿𝗼𝗱𝘂𝗰𝘁𝗶𝗼𝗻 𝘁𝗼 𝗟𝗶𝗻𝘂𝘅

Linux is a free, open-source operating system kernel initially developed by Linus Torvalds in 1991. Unlike licensed systems like Windows or macOS, Linux is highly customizable, secure, and community-driven. It forms a complete operating system used on servers, desktops, embedded devices, and even supercomputers. Its open-source nature allows anyone to inspect, modify, and distribute the code, fostering innovation and collaboration. Unlike Windows, Linux treats everything as a file, including hardware devices. It uses a single root structure, making navigation consistent and logical.


𝗟𝗶𝗻𝘂𝘅 𝗗𝗶𝘀𝘁𝗿𝗶𝗯𝘂𝘁𝗶𝗼𝗻𝘀 

Linux distributions (distros) are complete operating systems built around the Linux kernel, bundling software, package managers, and desktop environments. Each distro caters to specific needs.



Here are some popular distros with brief descriptions:

𝗨𝗯𝘂𝗻𝘁𝘂: User-friendly, widely supported, ideal for beginners and enterprise use.

𝗗𝗲𝗯𝗶𝗮𝗻: Stable, versatile, with a vast software repository; great for servers.

𝗙𝗲𝗱𝗼𝗿𝗮: Cutting-edge, backed by Red Hat, focuses on new technologies.

𝗖𝗲𝗻𝘁𝗢𝗦 𝗦𝘁𝗿𝗲𝗮𝗺: Enterprise-focused, upstream from which Red Hat Enterprise Linux is derived.

𝗞𝗮𝗹𝗶 𝗟𝗶𝗻𝘂𝘅: Security-focused, designed for penetration testing and cybersecurity.

Red Hat Enterprise Edition: Commercial version with stable and reliable and provide long term support


Linux Architecture

Linux’s architecture is modular and layered, designed for efficiency and portability. Key components include:

  1. Hardware Layer: The physical hardware (CPU, RAM, storage) that the kernel controls.

  2. Kernel: The core of Linux, managing hardware, processes, memory, and file systems.
    It operates in kernel space and supports:

    • Process Management: Scheduling and handling multiple processes.

    • Memory Management: Allocating and freeing memory for processes.

    • Device Drivers: Interfacing with hardware like CPUs, GPUs, and storage.

    • File System Management: Handling file operations across ext4, Btrfs, etc.

    • Networking: Managing network protocols and communication.

  3. System Libraries: Libraries like glibc provide functions for applications to interact with the kernel (e.g., file I/O, networking). Generally not shown in architecture diagram because system libraries are accessed by applications in user space

  4. Shell: Tools like bash, grep, and systemd manage system tasks, from shell scripting to service management 

  5. User Space: Applications (e.g., Firefox, LibreOffice) and desktop environments (e.g., GNOME, KDE) run here, interacting with the kernel via system calls.


Linux File System

The Linux file system is hierarchical, starting from the root directory (/) and organizing files in a tree-like structure. Unlike Windows, Linux treats everything as a file, including hardware devices, and uses a single root structure, making navigation consistent and logical. Key directories include:

  • /bin: Essential binary executables (e.g., ls, cp).

  • /etc: Configuration files for system and applications.

  • /home: User home directories for personal files and settings.

  • /var: Variable data like logs, databases, and temporary files.

  • /usr: User-installed software, libraries, and documentation.

  • /root: Home directory for the root (admin) user.

  • /tmp: Temporary files, cleared on reboot.

  • /dev: Device files (e.g., /dev/sda for storage devices).

  • /proc: Virtual files providing system and process information.


Why Linux is Better Than Other Operating Systems

While Windows dominates desktops and macOS excels in creative workflows, Linux offers unmatched flexibility, security, and cost-effectiveness, especially for servers, developers, and enthusiasts. Linux stands out compared to Windows and macOS for several reasons:

  1. Open-Source: Free to use, modify, and distribute, fostering transparency and community contributions.

  2. Security: Robust permission systems, fewer viruses, and quick patch releases enhance security.

  3. Customizability: Users can tailor the kernel, desktop environment, and software to their needs.

  4. Stability: Linux systems are known for uptime, with servers running for years without reboots.

  5. Performance: Lightweight and efficient, Linux runs well on old hardware and scales to supercomputers.

  6. Cost: Free distros and software reduce costs for individuals and enterprises.

  7. Community Support: Vast online communities, forums, and documentation provide help.

  8. Software Freedom: Access to thousands of free, open-source applications via package managers.

Comments