Introduction to Linux
Welcome to the Linux Basics course! In this section, you'll learn what Linux is, where it is used, and why it is one of the most important operating systems in the world.
Learning objectives
By the end of this section, you will be able to:
- Explain what Linux is and how it differs from other operating systems.
- Understand common places where Linux is used (servers, cloud, Android, devices).
- Describe the basic parts of a Linux system (kernel, shell, terminal).
- Understand the idea of distributions (Ubuntu, Debian, Fedora, etc.).
- Know why Linux is popular for developers and companies.
What is Linux?
Linux is a free and open-source operating system. It controls how your computer's hardware and software work together, just like Windows or macOS.
- Runs on servers, desktops, laptops, phones, TVs, and routers.
- Is known for stability, security, and flexibility.
- Is open-source, which means anyone can see and improve the code.
- Powers most of the internet, cloud servers, and supercomputers.
Where do we use Linux?
Linux is not only for hackers in movies. It quietly runs behind the scenes almost everywhere:
- Web servers (Google, Facebook, Amazon, and most websites you visit).
- Cloud platforms (AWS, Azure, Google Cloud all rely heavily on Linux).
- Android phones (Android is built on top of the Linux kernel).
- Smart devices (TVs, routers, CCTV cameras, and IoT devices).
Why learn Linux?
Knowing Linux gives you superpowers as a developer, IT professional, or power user:
- Better control over your system using the terminal.
- Easier to work with servers, cloud, and DevOps tools.
- Preferred environment for programming, security, and data science.
- Many developer tools are built for Linux first.
Key parts of a Linux system
Linux is made up of different components that work together:
- Kernel: The core part that talks directly to the hardware.
- Shell: The program that takes your commands and passes them to the system.
- Terminal: The window where you type commands.
- File system: How files and folders are organized (you'll learn more in later chapters).
Linux vs other operating systems
Here is a simple comparison between Linux, Windows, and macOS:
| Feature | Linux | Windows / macOS |
|---|---|---|
| License | Mostly free and open-source. | Commercial, closed-source (not freely editable). |
| Customization | Highly customizable (desktop, shell, tools). | Limited customization compared to Linux. |
| Usage | Popular on servers, cloud, and for developers. | Popular on desktops and laptops for everyday users. |
| Security | Known for strong security when configured properly. | Good security, but often targeted more by malware on desktops. |
Popular Linux distributions
Linux Distributions are the most popular versions of Linux. Here are some of the most popular Linux distributions:
| Distro | Best for |
|---|---|
| Ubuntu | Easiest and most common; great for beginners. |
| Debian | Very stable; often used as a base for other distros. |
| Fedora | Modern and updated; cutting-edge software. |
| Arch | Advanced and highly customizable; for experienced users. |
| Kali | Security testing and hacking practice (ethical). |
| Mint | Beginner-friendly; simple and familiar desktop. |
History of Linux
A short timeline of how Linux came to be and where it is today:
| Year | Event | Explanation |
|---|---|---|
| 1969 | Unix created | Unix developed at Bell Labs. Linux was later inspired by Unix. |
| 1983 | GNU Project | Richard Stallman started GNU to create a free Unix-like OS. |
| 1991 | Linux kernel | Linus Torvalds created the first Linux kernel as a student in Finland. |
| 1992 | Open source | Linux released under GPL; anyone can use, modify, and share it. |
| 1993 | First distros | Slackware and Debian among the first popular distributions. |
| 1996 | Tux mascot | The penguin Tux became the official mascot of Linux. |
| 2008 | Android | Android, based on the Linux kernel, launched for smartphones. |
| Present | Linux everywhere | Servers, cloud, phones, IoT, supercomputers. Linux runs it all. |
Note: You don't need to delete Windows or macOS to learn Linux. Many people use Linux in a virtual machine, on the cloud, or alongside their existing OS.
Key takeaways
Remember these points before moving to the next chapter:
- Linux is an operating system that runs on many kinds of devices.
- It is open-source and free to use, edit, and share.
- Most of the internet and cloud services are powered by Linux.
- Learning Linux helps you become comfortable with servers, terminals, and development tools.
Practice questions
List 5 places or devices where you think Linux might be running.
Hint: Think about servers, phones, routers, smart TVs, cloud platforms, etc.
Why do you personally want to learn Linux? Write 3 reasons.
Hint: Career, curiosity, server management, programming, hacking/CTF, etc.
Quiz
Test your understanding. Click an answer to see if it's correct.
1. What is Linux?
Linux is an operating system, similar to Windows or macOS, but open-source and widely used on servers and devices.
2. Which of the following is a common place where Linux is used?
Linux is popular on servers, in the cloud, on Android, and many embedded devices.
3. Which part of a Linux system talks directly to the hardware?
The kernel is the core layer that communicates with hardware devices.
4. What is a Linux distribution (distro) like Ubuntu or Fedora?
A distribution is a packaged version of Linux tailored with software, tools, and a desktop.
5. Which of the following is a good reason to learn Linux?
Linux is very valuable for working with servers, programming, DevOps, and cloud platforms.
6. Who created the first Linux kernel?
Linus Torvalds created the first Linux kernel as a student in Finland.
Ready to dive in? In the next chapter, we'll walk you through installing Linux step by step.