Introduction
Linux is an operating system like Windows, iOS, Android, or macOS.
An OS is software that manages all of the hardware resources associated with a computer.
Philosophy
Linux follows these 5 principles:
Everything is a file
All configuration files for the various services running on the Linux operating system are stored in one or more text files.
Small, single-purpose programs
Linux offers many different tools which can be combined to work together.
Ability to chain programs together to perform complex tasks
The integration and combination of different tools enable us to carry out many large and complex tasks.
Avoid captive user interfaces
Linux is designed to work mainly with the shell (or terminal), which gives the user greater control over the operating system.
Configuration data stored in a text file
An example of such a file is the /etc/passwd file, which stores all users registered on the system.
Components
Bootloader
A piece of code that runs to guide the booting process to start the operating system.
OS Kernel
The kernel is the main component of an operating system. It manages the resources for system's I/O devices at the hardware level.
Daemons
Background services are called "daemons" in Linux. Their purpose is to ensure that key functions are working correctly. These small programs load after we booted or log into the computer.
OS Shell
The operating system shell or the command language interpreter (also known as the command line) is the interface between the OS and the user.
Graphics Server
This provides a graphical sub-system (server) called "X" or "X-server" that allows graphical programs to run locally or remotely on the X-windowing system.
Window Manager (GUI)
It controls the placement and apperance of windows that are created by the graphics server.
Utilities
Applications or utilities are programs that perform particular functions for the user or another program.
There are many different operating systems that are built on the Linux's kernel, these are called distributions (distro).
/
The top-level directory is the root filesystem and contains all of the files required to boot the operating system before other filesystems are mounted, as well as the files required to boot the other filesystems. After boot, all of the other filesystems are mounted at standard mount points as subdirectories of the root.
/bin
Contains essential command binaries.
/boot
Consists of the static bootloader, kernel executable, and files required to boot the Linux OS.
/dev
Contains device files to facilitate access to every hardware device attached to the system.
/etc
Local system configuration files. Configuration files for installed applications may be saved here as well.
/home
Each user on the system has a subdirectory here for storage.
/lib
Shared library files that are required for system boot.
/media
External removable media devices such as USB drives are mounted here.
/mnt
Temporary mount point for regular filesystems.
/opt
Optional files such as third-party tools can be saved here.
/root
The home directory for the root user.
/bin
This directory contains executables used for system administration (binary system files).
/tmp
The operating system and many programs use this directory to store temporary files. This directory is generally cleared upon system boot and may be deleted at other times without any warning.
/usr
Contains executables, libraries, man files, etc.
/var
This directory contains variable data files such as log files, email in-boxes, web application related files, cron files, and more.
Linux Distributions
Linux distributions (distros) are operating systems based on the Linux kernel. They are used for various purposes, from servers and embedded devices to desktop computers and mobile phones. Each Linux distribution is different, with its own set of features, packages, and tools.
Examples of distros and their usages:
Fedora/Ubuntu: Used as a desktop linux that's suitable for beginners and everyday users.
Kali Linux/ ParrotOS: Used by cybersecurity specialists.
Debian
Debian is a widely used and well-respected Linux distribution known for its stability and reliability. It is used for various purposes, including desktop computing, servers, and embedded systems.
Other operating systems are based on Debian, including but not limited to Kali Linux and Ubuntu.
Last updated