- What is Linux?
- A Brief History
- Linux vs Unix
- The Linux Kernel
- Linux Distributions
- Choosing a Distro
- The Open Source Philosophy
- Why Learn Linux?
- Practice Exercises
Linux is a free, open-source operating system kernel created by Linus Torvalds in 1991. When people say "Linux," they usually mean a complete operating system (called a distribution or distro) that bundles the Linux kernel with system utilities, a package manager, and often a graphical desktop.
๐ Analogy: Think of the Linux kernel as the engine of a car. A Linux distribution is the complete car โ engine + body + interior + wheels. Different manufacturers (Ubuntu, Fedora, Arch) build different cars, but they all share the same type of engine.
| Feature | Description |
|---|---|
| Free & Open Source | Anyone can view, modify, and distribute the source code |
| Multi-user | Multiple users can work on the same system simultaneously |
| Multi-tasking | Runs multiple processes at the same time |
| Portable | Runs on everything from smartwatches to supercomputers |
| Secure | Strong permission model and active security community |
| Stable | Servers often run for years without rebooting |
1969 โโ Unix created at AT&T Bell Labs (Ken Thompson & Dennis Ritchie)
โ
1983 โโ Richard Stallman launches GNU Project ("GNU's Not Unix")
โ
1991 โโ Linus Torvalds releases the first Linux kernel (v0.01)
โ "I'm doing a (free) operating system (just a hobby, won't be big
โ and professional like gnu)" โ Linus Torvalds, comp.os.minix
โ
1992 โโ Linux relicensed under GNU GPL
โ
1993 โโ Slackware & Debian โ first major distros
โ
1998 โโ "Open Source" term coined; major enterprise adoption begins
โ
2004 โโ Ubuntu launches, making Linux accessible to everyone
โ
2008 โโ Android (built on Linux kernel) launches
โ
2011 โโ Linux kernel 3.0 released
โ
2020sโ Linux dominates servers (96.3% of top 1M servers),
cloud computing, IoT, supercomputers (100% of TOP500),
Android phones (3+ billion devices), and more.
| Aspect | Unix | Linux |
|---|---|---|
| Origin | 1969, AT&T Bell Labs | 1991, Linus Torvalds |
| License | Proprietary (mostly) | GPL (free & open source) |
| Cost | Often expensive | Free |
| Examples | Solaris, AIX, HP-UX, macOS | Ubuntu, Fedora, Arch, Debian |
| Hardware | Specific hardware | Runs on almost anything |
| Development | Closed, corporate | Open, community-driven |
๐ Note: Linux is Unix-like but not Unix. It was written from scratch to be compatible with Unix standards (POSIX) without using Unix source code.
The kernel is the core of the operating system. It manages:
| Responsibility | What It Does |
|---|---|
| Process Management | Creates, schedules, and terminates processes |
| Memory Management | Allocates and frees RAM, handles virtual memory |
| Device Drivers | Communicates with hardware (disk, USB, GPU, etc.) |
| File Systems | Manages how data is stored and retrieved |
| Networking | Handles TCP/IP stack, sockets, and routing |
| System Calls | Provides the API between user programs and hardware |
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ USER SPACE โ
โ โโโโโโโโ โโโโโโโโ โโโโโโโโ โโโโโโโโ โ
โ โ Bash โ โFirefoxโ โ vim โ โ MySQLโ โ
โ โโโโฌโโโโ โโโโฌโโโโ โโโโฌโโโโ โโโโฌโโโโ โ
โ โ โ โ โ โ
โโโโโโโดโโโโโโโโโโดโโโโโโโโโโดโโโโโโโโโโดโโโโโโโโโค
โ SYSTEM CALL INTERFACE โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ KERNEL SPACE โ
โ โโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโโโ โ
โ โ Process โ โ Memory โ โ Device โ โ
โ โ Mgmt โ โ Mgmt โ โ Drivers โ โ
โ โโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ HARDWARE โ
โ CPU RAM Disk Network GPU USB โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
A distribution (distro) = Linux kernel + system tools + package manager + desktop environment.
โโโโโโโโโโโโ
โโโโโโค Debian โโโโโโ
โ โโโโโโโโโโโโ โ
โโโโโโดโโโโ โโโโโโดโโโโ
โ Ubuntu โ โ Mint โ
โโโโโโฌโโโโ โโโโโโโโโโ
โโโโโโดโโโโ
โ Pop!_OS โ
โโโโโโโโโโ
โโโโโโโโโโโโ
โโโโโโค Red Hat โโโโโโ
โ โโโโโโโโโโโโ โ
โโโโโโดโโโโ โโโโโโดโโโโ
โ Fedora โ โ CentOS โ
โโโโโโโโโโ โ Stream โ
โโโโโโโโโโ
โโโโโโโโโโโโ
โ Arch โ
โโโโโโฌโโโโโ
โโโโโโดโโโโ
โ Manjaro โ
โโโโโโโโโโ
| Distro | Based On | Package Manager | Best For |
|---|---|---|---|
| Ubuntu | Debian | apt | Beginners, desktops, servers |
| Fedora | Red Hat | dnf | Developers, cutting-edge |
| Debian | Independent | apt | Stability, servers |
| Arch | Independent | pacman | Advanced users, customization |
| Linux Mint | Ubuntu | apt | Windows switchers |
| CentOS Stream | Red Hat | dnf | Enterprise servers |
| openSUSE | Independent | zypper | Enterprise, stability |
| Manjaro | Arch | pacman | Arch without the complexity |
| Kali | Debian | apt | Penetration testing |
| Pop!_OS | Ubuntu | apt | Developers, gaming |
- Ubuntu โ Largest community, most tutorials
- Linux Mint โ Feels familiar if you're coming from Windows
- Pop!_OS โ Great for gaming and NVIDIA hardware
- Ubuntu Server โ Most popular cloud OS
- Debian โ Rock-solid stability
- Rocky Linux โ CentOS replacement for enterprise
- Arch Linux โ Build your system from the ground up
- Gentoo โ Compile everything, maximum control
- Linux From Scratch โ The ultimate learning experience
- Kali Linux โ Penetration testing tools pre-installed
- Tails โ Privacy-focused, runs from USB
- Qubes OS โ Security through compartmentalization
Linux is built on the principles of the Free Software Movement:
| Freedom | Description |
|---|---|
| Freedom 0 | Run the program for any purpose |
| Freedom 1 | Study how the program works and modify it |
| Freedom 2 | Redistribute copies |
| Freedom 3 | Distribute copies of your modified versions |
| License | Key Feature |
|---|---|
| GPL | Modifications must remain open source |
| MIT | Do almost anything, including closed source |
| Apache 2.0 | Like MIT but with patent protection |
| BSD | Very permissive, no copyleft |
- โ๏ธ 96.3% of the top 1 million web servers run Linux
- ๐ฅ๏ธ 100% of the world's top 500 supercomputers run Linux
- ๐ฑ 72% of all mobile devices run Android (Linux kernel)
- ๐ณ Docker & Kubernetes โ built for and on Linux
- โ๏ธ AWS, GCP, Azure โ default OS is Linux
- DevOps, SRE, Cloud Engineering โ Linux is mandatory
- Cybersecurity โ most tools are Linux-native
- Software Development โ most servers deploy on Linux
- Average Linux sysadmin salary: $80,000 โ $130,000+
- Deep understanding of how computers actually work
- Full control over your operating system
- Better security and privacy
- Free forever โ no licenses, no subscriptions
- Research: Look up the latest stable Linux kernel version at kernel.org
- Explore: Visit DistroWatch and browse the top 10 distributions
- Reflect: Which distro sounds right for you and why?
- Read: Skim the GNU Philosophy page
- Install: If you haven't yet, download a Linux distro ISO โ we'll install it in the next chapter!