// The foundation of modern computing.
LINUX IS EVERYWHERE.
From servers powering the internet to Android phones, smart devices, and supercomputers, Linux runs the world. Understanding Linux gives you control over the infrastructure that powers our digital lives.
WHY LINUX?
Linux is free and open source. You can inspect every line of code, modify it for your needs, and share your changes. No vendor lock-in, no forced updates, no surveillance.
TAKE BACK CONTROL.
The terminal isn't scary—it's empowering. When you understand Linux, you understand how computers actually work. You become the master, not the user.
12 lessons. Complete system control.
History, philosophy, and why Linux matters
BeginnerNavigate and control your system via CLI
Beginnercd, ls, pwd, and directory structure
Beginnerchmod, chown, and access control
Intermediateps, top, kill, and managing running processes
Intermediategrep, sed, awk, and pipe operations
IntermediateVariables, loops, and writing automation scripts
Intermediatesystemd, service management, and cron jobs
Intermediateip, ss, curl, and network configuration
Intermediatedf, du, mounting, and disk management
Advancedhtop, vmstat, iostat, and log analysis
AdvancedSELinux, permissions, and security hardening
AdvancedLinux was created by Linus Torvalds in 1991 as a free alternative to UNIX. Today, it's the backbone of the internet—over 96% of the world's top web servers run Linux.
But Linux isn't just for servers. It's for anyone who wants true ownership of their computing. Whether you're a developer, system administrator, security researcher, or curious learner, Linux gives you freedom.
The four freedoms of free software: Run the program for any purpose, study how it works, redistribute copies, and distribute your modified versions. This is the philosophy that powers the open source world.
Your computer, your rules. Learn Linux.
Linux is a free and open-source operating system kernel first released by Linus Torvalds in 1991. Unlike Windows or macOS, Linux is not a single product—it's a kernel that forms the foundation of hundreds of unique distributions (distros).
Free in FOSS means freedom, not price. The four essential freedoms are:
You don't need to replace your OS to learn Linux. Options include:
1. Linux was first released by _____ in 1991.
Hint: The Finnish developer who created the Linux kernel
2. FOSS stands for _____ and Open Source Software.
Hint: Think
3. A Linux _____ is a complete operating system built on the Linux kernel.
Hint: Often abbreviated as
4. The _____ philosophy emphasizes freedom to run, study, redistribute, and modify software.
Hint: Free and Open Source Software
The terminal (or shell) is your direct interface with Linux. While graphical interfaces are nice, the terminal offers:
Most commands follow this pattern: command [options] [arguments]
Here, ls is the command, -l is an option (flag), and /home is the argument.
1. The command to display text is _____.
Hint: Like shouting in a canyon
2. To see your username, use the _____ command.
Hint: It literally asks
3. The _____ command displays the manual for another command.
Hint: Short for
4. In
Hint: Also called a flag
Linux organizes everything under a single directory tree. Unlike Windows (C:, D:, etc.), Linux has one unified hierarchy.
1. The top of the Linux directory tree is called _____.
Hint: Represented by /
2. User home directories are located in _____.
Hint: Like C:\Users on Windows
3. The command to change directories is _____.
Hint: Short for
4. The _____ character represents your home directory.
Hint: Tilde
In Linux, every file and directory has permissions that control who can read, write, or execute it. This is fundamental to Linux security.
The string -rw-r--r-- breaks down as:
Permissions can also be represented numerically:
So rw-r--r-- = 644 (owner has 4+2=6, others have 4)
And rwxr-xr-x = 755 (owner has all, others can read/execute)
And rwx------ = 700 (only owner can do anything)
Flags: u=user (owner), g=group, o=others, a=all
File ownership is shown as user:group. The syslog file is owned by syslog user, adm group.
1. The permission to view file contents is _____.
Hint: Represented by
2. The command to change ownership is _____.
Hint: CHange OWNership
3. To make a file private, use chmod _____.
Hint: Only owner can access
4. In -rwxr-xr-x, the owner
Hint: Read, write, execute
A process is a running program. Every command you execute starts one or more processes. Understanding processes gives you complete control over your system.
Every process has a unique Process ID. The first process (init/systemd) is always PID 1.
Signals are how you communicate with processes:
Process priority ranges from -20 (highest) to +19 (lowest). Higher priority = more CPU time.
1. Every process has a unique _____.
Hint: Process ID
2. Signal _____ forces immediate termination.
Hint: Signal number 9
3. The _____ command shows real-time process activity.
Hint: Like Task Manager on Windows
4. To run a command in the background, add _____.
Hint: Ampersand
In Linux, text is king. Most configuration is done through text files, and the tools to manipulate text are incredibly powerful. This is why FOSS is so powerful—you can understand and modify everything.
Pipes (|) send the output of one command as input to another. This is called composition.
1. The _____ command searches for patterns in text.
Hint: Global Regular Expression Print
2. The _____ symbol (|) sends output from one command to another.
Hint: It connects commands together
3. To view the first 10 lines of a file, use the _____ command.
Hint: Opposite of
4. The _____ command counts lines, words, and characters.
Hint: Word Count
Shell scripting allows you to automate repetitive tasks, combine multiple commands into single operations, and create powerful system administration tools. It's the foundation of system automation on Linux.
Every command returns an exit code: 0 means success, non-zero means failure.
1. The first line of a bash script is called the _____.
Hint: Starts with #!/bin/bash
2. To make a script executable, use chmod _____.
Hint: Add execute permission
3. The _____ command reads user input into a variable.
Hint: Like reading from stdin
4. An exit code of _____ indicates success.
Hint: Zero means no errors
systemd is the system and service manager for most modern Linux distributions. It manages startup processes, services, and system states. Understanding systemd is essential for system administration.
Enable means the service starts automatically at boot. Disable prevents auto-start.
1. The command to manage systemd services is _____.
Hint: System Control
2. To start a service at boot, use systemctl _____.
Hint: Opposite of disable
3. The traditional job scheduler in Linux is called _____.
Hint: Chronological
4. The command to view your cron jobs is crontab _____.
Hint: List/Show
Linux provides powerful networking tools for diagnostics, monitoring, and configuration. The `ip` command has replaced deprecated tools like ifconfig, route, and arp.
The `ss` command replaces netstat and provides faster, more detailed socket information.
1. The modern replacement for ifconfig is the _____ command.
Hint: Short and modern
2. The _____ command replaces netstat for socket statistics.
Hint: Socket Statistics
3. To download a file from the command line, use _____ or wget.
Hint: Client URL
4. The _____ command traces the network path to a destination.
Hint: Trace the route
Understanding storage management is critical for system administration. From partitioning disks to managing LVM volumes and configuring mount points, these skills ensure your data is safe and accessible.
LVM provides flexible disk management by abstracting physical disks into logical volumes.
1. The command to view disk partition information is _____.
Hint: List Block devices
2. The file _____ defines permanent filesystem mounts.
Hint: /etc/fstab
3. LVM stands for _____ Volume Manager.
Hint: Not physical
4. To create an ext4 filesystem, use the _____ command.
Hint: Make filesystem
System monitoring is essential for identifying performance bottlenecks, detecting resource exhaustion, and ensuring system stability. Linux provides numerous tools for real-time and historical monitoring.
htop features: Color-coded display, mouse support, visual CPU/memory bars, easier process killing (F9), sorting by any column (F6).
1. The enhanced version of top with colors and mouse support is _____.
Hint: H for human-friendly
2. The command to view virtual memory statistics is _____.
Hint: Virtual Memory Statistics
3. systemd logs are viewed using the _____ command.
Hint: Journal Control
4. Kernel messages are viewed with the _____ command.
Hint: Diagnostic Message
Linux security is multi-layered, combining mandatory access controls, auditing, integrity checking, and least-privilege principles. Understanding these tools is essential for protecting systems and data.
SELinux is a mandatory access control (MAC) system that enforces security policies at the kernel level.
AppArmor is another MAC system, used primarily on Ubuntu and SUSE. It uses profiles to confine programs.
AIDE (Advanced Intrusion Detection Environment) monitors file integrity and detects unauthorized changes.
1. SELinux stands for Security-_____ Linux.
Hint: Improved or strengthened
2. The command to check SELinux status is _____.
Hint: SE Linux Status
3. _____ is an alternative to SELinux used on Ubuntu.
Hint: Application Armor
4. AIDE stands for Advanced Intrusion _____ Environment.
Hint: Finding intrusions