Beginner Guide

Linux Fundamentals: The Story of the OS That Runs the World

Updated June 2026
Linux Command Line Splash
Direct, fast, and incredibly powerful. This terminal is your doorway to managing global infrastructure.

Welcome, future tech superstars! Have you ever wondered what powers the apps on your phone, the websites you visit, or the systems that fly rockets into space? The answer is Linux. It is the operating system that runs the modern world.

But don't let names like "Command Line" or "System Administration" scare you. Learning Linux is like learning a superpower, and we are going to start from the very beginning. Grab a cup of hot chocolate, and let's start with a story!

The Story of Linus Torvalds and a "Hobby" Project

Once upon a time in 1991, in Helsinki, Finland, there was a 21-year-old university student named Linus Torvalds. Like many college kids, Linus had a computer, but he was frustrated. The operating systems of that time were either closed, extremely expensive (like UNIX), or simple and unstable.

Linus wanted to tinker with the inner workings of his computer, but closed-source software wouldn't let him see how it worked. So, he decided to write his own operating system core (called a kernel) from scratch.

It was a massive undertaking, but to Linus, it was just a fun sideline. In August 1991, he posted a famous message to an online message board:

"Hello everybody out there... I'm doing a (free) operating system (just a hobby, won't be big and professional like gnu) for 386(486) AT clones..."

Linus shared his creation online and invited other programmers to view the code, play with it, and help him write it. He released it as open-source, meaning the code was public, and anyone could download it for free.

This simple act of sharing triggered a revolution. Hundreds, then thousands, and eventually millions of software developers around the globe joined in to build, fix, and improve Linux together. Today, Linus's "hobby project" has become the most important software on Earth!

Linus Torvalds Concept Code Workspace
Linus's open sharing philosophy created the largest collaborative engineering effort in human history.

Why is the Whole World Running on Linux Today?

You might think, "I don't use Linux, I use Windows/Mac!" But in reality, you interact with Linux hundreds of times every single day. Here is why:

It's in Your Pocket

Every single Android smartphone is built on top of the Linux kernel. Over 3 billion active devices run on Linux daily!

It Rules the Internet

More than 96% of the top 1 million web servers run Linux. When you search Google, watch Netflix, or browse Instagram, a Linux server handles it.

It is Bulletproof Secure

Because millions of programmers inspect the code daily, bugs and security holes are spotted and fixed almost instantly.

Extreme Stability

Linux servers can run for years without restarting. They power the International Space Station, high-speed bullet trains, and all 500 of the world's fastest supercomputers.

Real-World Scenario: Flipkart Big Billion Days Sale

It’s 12:00 midnight. The blockbuster Flipkart Big Billion Days sale goes live! Millions of shoppers across India load the homepage at the exact same split-second. The servers supporting this massive traffic are hosted in the AWS Mumbai Data Centre (ap-south-1). Suddenly, an application error causes a server slowdown. The developers can't fly a physical engineer to the data centre to attach a monitor or plug in a USB mouse.

Instead, as a DevOps engineer, you open a terminal console from your laptop in Bangalore and securely log into the remote server. But how do you find the problem when there are millions of lines of active user logs? Scrolling through text files manually would take days. Instead, you type a single Linux command: grep "CRITICAL_ERROR" /var/log/flipkart-app.log. Instantly, the terminal filters out all noise and shows you the exact 2 error lines pointing to a database connection bottleneck. You adjust the config, restart the service, and the sale goes on smoothly. That is the power of the Linux CLI!

GUI vs. CLI: The Restaurant Metaphor

If you use Windows or macOS, you are used to a GUI (Graphical User Interface). You point with a mouse, double-click on folders, and press colorful buttons. Linux has a GUI too, but DevOps engineers prefer the CLI (Command Line Interface)—a black screen where you type commands to get things done.

Think of a Computer like a Restaurant Kitchen

Using a GUI is like sitting at a table and ordering from a menu. You look at the options, point to the burger, and click. It's easy, but you are limited. If you want to customize your burger by adding a specific sauce, swapping the buns, and cooking it medium-rare, and the menu doesn't offer it, you are out of luck.

Using a CLI (Terminal) is like walking right into the kitchen and talking to the chef. You can say: "Hey, bake a fresh brioche bun, grill a patty for exactly 4 minutes, add a dash of secret spices, and make 500 of these for a party!"

By talking directly to the system in its own language, you can automate anything. You can tell a Linux server to create 1,000 files, rename them, search them for errors, and send them to the cloud—all with a single typed sentence.

Linux Terminal on Screen
Direct server control: Operating systems across global cloud data centers run almost entirely on Linux CLI.

The Linux Command Line Terminal

To help you understand the Command Line easily, let's see what a terminal looks like. Below is an example showing how directory navigation and paths are checked inside a standard Linux Bash terminal window.

Linux Bash Terminal
student@growthschool:~$ ls
Desktop Documents Downloads projects notes.txt
student@growthschool:~$ pwd
/home/student

30+ Everyday Linux Commands

Here is your essential cheat sheet! We have compiled 30 of the most important, everyday Linux commands, including simple examples and analogies even a school student can understand.

# Purpose Linux Command Real-World Analogy & Example
1 Where am I? pwd Analogy: Checking your GPS map to see your exact location coordinates.
Example: pwd prints /home/student/projects
2 What's inside? ls Analogy: Opening a drawer to see all papers and items inside.
Example: ls -l lists files with details.
3 Move around cd [folder] Analogy: Stepping through a door to enter another room.
Example: cd devops to enter; cd .. to exit.
4 Create folder mkdir [name] Analogy: Placing a new empty box on the shelf with a label.
Example: mkdir my_code creates a new folder.
5 Create empty file touch [file] Analogy: Placing a clean, blank sheet of paper on your desk.
Example: touch notes.txt creates a blank notes file.
6 Read file content cat [file] Analogy: Opening a book page to read the text written on it.
Example: cat config.json displays the file on screen.
7 Copy file cp [src] [dst] Analogy: Making a photocopy of a document so you have a duplicate.
Example: cp notes.txt backup.txt
8 Move or Rename mv [old] [new] Analogy: Moving a box to a new room, or changing its label.
Example: mv test.txt prod.txt renames the file.
9 Delete file rm [file] Analogy: Running a document through a paper shredder permanently.
Example: rm temp.log deletes the temporary log.
10 Delete empty folder rmdir [folder] Analogy: Throwing away a cardboard box that is completely empty.
Example: rmdir old_backup/
11 Force delete folder rm -rf [folder] Analogy: Throwing a chest and everything inside it directly into a furnace.
Example: rm -rf build/ deletes everything recursively.
12 Search inside text grep "[text]" [file] Analogy: Using a yellow highlighter to find a key term in a book.
Example: grep "Success" system.log
13 Network Info / IP ip addr Analogy: Finding your home's mailing address so packages can be delivered.
Example: ip addr show displays your IP details.
14 Ping connectivity ping [host] Analogy: Tapping a microphone and saying "Is this working?" to test response.
Example: ping google.com checks internet status.
15 Who am I? whoami Analogy: Checking the name card pinned to your shirt badge.
Example: whoami output: ubuntu
16 Clear terminal screen clear Analogy: Erasing a chalkboard completely clean to start writing fresh.
Example: clear wipes the screen output history.
17 Command History history Analogy: Flipping through a diary of everything you did yesterday.
Example: history displays past commands you ran.
18 Command Help / Manual man [command] Analogy: Opening the instruction booklet that came with your toy puzzle.
Example: man ls shows options and manual for ls.
19 OS Details uname -a Analogy: Reading the sticker on the back of a TV showing model and build.
Example: uname -a displays kernel details.
20 Check Disk Space df -h Analogy: Checking how many pages are left in your notebook before it's full.
Example: df -h shows human-readable disk details.
21 Check Free RAM free -m Analogy: Checking how much space is left on your kitchen table while cooking.
Example: free -m displays memory in Megabytes.
22 Task Manager top / htop Analogy: Watching the cook's panel showing who is preparing what in real-time.
Example: top shows live CPU and RAM consumption.
23 Stop active task kill [PID] Analogy: Tapping someone's shoulder and telling them to stop working immediately.
Example: kill 1289 kills the process with PID 1289.
24 File Permissions chmod [perms] [file] Analogy: Putting a lock on a diary and choosing who gets the key (Read/Write/Run).
Example: chmod +x run.sh makes a script runnable.
25 File Owner chown [owner] [file] Analogy: Selling your cycle to a friend and writing their name on it as owner.
Example: chown admin notes.txt changes owner to admin.
26 Download file wget [url] / curl Analogy: Calling a courier service to fetch a package from another city.
Example: wget http://example.com/logo.png
27 Read top lines head [file] Analogy: Scanning the title and introductory paragraph of a news article.
Example: head -n 5 log.txt shows first 5 lines.
28 Read bottom lines tail [file] Analogy: Reading the summary page at the very end of a book report.
Example: tail -f logs.txt follows logs in real-time.
29 Current Date/Time date Analogy: Looking at your wristwatch to check the date and time.
Example: date prints the current date on screen.
30 Compare Files diff [f1] [f2] Analogy: Holding two drawings side-by-side to spot the differences.
Example: diff index.html backup.html shows line changes.
31 Remote Connection ssh [user]@[ip] Analogy: Making a secure phone call to log in and talk to a machine in another city.
Example: ssh ubuntu@13.233.1.100 connects to AWS Mumbai.

Pro-Tip for Practice

Want to practice Linux commands directly on your computer? If you are on Windows, you can install WSL2 (Windows Subsystem for Linux), which lets you run a fully-featured Ubuntu terminal inside Windows. Alternatively, downloading Git Bash or launching a free virtual machine on AWS (Mumbai Region) gives you a terminal shell to practice these core commands instantly.

Next Steps on Your DevOps Journey

Congratulations! You just completed the first step towards mastering the foundation of cloud computing and DevOps. By learning how operating systems evolved and getting comfortable with commands, you are ready to explore security permissions next.

Test Your Knowledge

Answer these 25 questions to check your understanding of this module. Click on an option to reveal the correct answer instantly.

Question 1 of 25
Which command is used to list all files, including hidden ones?
A. ls -l
B. ls -a
C. ls -h
D. ls -x
Explanation: The -a flag stands for "all" and includes hidden files starting with a dot.
Question 2 of 25
How do you change the owner of a file?
A. chmod
B. chown
C. chgrp
D. umask
Explanation: chown (change owner) is used to change the file owner and group.
Question 3 of 25
Which directory typically contains configuration files?
A. /bin
B. /dev
C. /etc
D. /lib
Explanation: /etc contains system-wide configuration files.
Question 4 of 25
Which command shows disk usage of files and directories?
A. df
B. du
C. ps
D. top
Explanation: du (disk usage) estimates file space usage; df shows file system disk space usage.
Question 5 of 25
What is the PID of the init/systemd process?
A. 0
B. 1
C. 100
D. 999
Explanation: The init or systemd process is the first process started and always has PID 1.
Question 6 of 25
Which command displays the current working directory?
A. pwd
B. cwd
C. dir
D. ls
Explanation: pwd stands for Print Working Directory.
Question 7 of 25
How do you create a new directory including parent directories if they don’t exist?
A. mkdir -p
B. mkdir -r
C. mkdir -s
D. mkdir -f
Explanation: mkdir -p creates parent directories as needed.
Question 8 of 25
Which command is used to find text patterns within a file?
A. find
B. locate
C. grep
D. sed
Explanation: grep is a powerful utility for searching plain-text data sets for lines that match a regular expression.
Question 9 of 25
Which permission code represents read, write, and execute for the owner?
A. 4
B. 5
C. 6
D. 7
Explanation: 7 (4+2+1) represents Read(4) + Write(2) + Execute(1).
Question 10 of 25
How do you check the kernel version?
A. uname -r
B. linux -v
C. ver
D. kernel -s
Explanation: uname -r prints the kernel release version.
Question 11 of 25
Which command displays real-time system processes?
A. ps
B. top
C. jobs
D. proc
Explanation: top provides a dynamic real-time view of a running system.
Question 12 of 25
How do you force kill a process with PID 1234?
A. kill 1234
B. kill -9 1234
C. stop 1234
D. end 1234
Explanation: kill -9 sends the SIGKILL signal which forces the process to terminate immediately.
Question 13 of 25
What does the command "touch file.txt" do?
A. Opens the file
B. Deletes the file
C. Updates timestamp or creates empty file
D. Changes file permissions
Explanation: touch updates the access and modification times, or creates an empty file if it does not exist.
Question 14 of 25
Which file contains user password information (encrypted)?
A. /etc/passwd
B. /etc/shadow
C. /etc/group
D. /etc/secure
Explanation: /etc/shadow contains encrypted user passwords.
Question 15 of 25
Which symbol redirects output to a file, overwriting it?
A. >>
B. >
C. <
D. |
Explanation: > redirects output and overwrites; >> appends.
Question 16 of 25
What is the default port for SSH?
A. 21
B. 22
C. 23
D. 80
Explanation: Port 22 is the standard port for Secure Shell (SSH).
Question 17 of 25
Which command is used to view the last few lines of a file?
A. head
B. tail
C. less
D. cat
Explanation: tail outputs the last part of files.
Question 18 of 25
Which command compresses files into a .tar.gz archive?
A. tar -cvf
B. tar -xvf
C. tar -czvf
D. tar -uzvf
Explanation: -c (create), -z (gzip), -v (verbose), -f (file).
Question 19 of 25
How do you check free memory space?
A. df
B. free
C. mem
D. du
Explanation: free displays the amount of free and used memory in the system.
Question 20 of 25
Which command shows network interface configuration?
A. ifconfig
B. netstat
C. ping
D. route
Explanation: ifconfig (or ip addr) is used to configure/view network interfaces.
Question 21 of 25
What does "chmod 755" mean?
A. Owner: rwx, Group: rwx, Others: rwx
B. Owner: rwx, Group: rx, Others: rx
C. Owner: rw, Group: r, Others: r
D. Owner: rwx, Group: -, Others: -
Explanation: 7 (rwx) for owner, 5 (rx) for group, 5 (rx) for others.
Question 22 of 25
Which command creates a symbolic link?
A. ln -s
B. ln -h
C. link -s
D. sl -n
Explanation: ln -s creates a symbolic (soft) link.
Question 23 of 25
What is /dev/null?
A. The root directory
B. A temporary folder
C. A device file that discards all data written to it
D. The boot loader
Explanation: /dev/null is the null device, discarding all data written to it (black hole).
Question 24 of 25
Which command removes a directory and its contents recursively?
A. rm -r
B. rmdir
C. del /s
D. erase -r
Explanation: rm -r (recursive) removes directories and their contents.
Question 25 of 25
Which command displays the manual page of a command?
A. help
B. man
C. info
D. doc
Explanation: man formats and displays the on-line manual pages.