Learning Objectives
Understand Linux
Know what Linux is and why it is widely used in IT environments.
Compare OS Types
Understand basic differences between Linux and Windows from a user/admin view.
Use Terminal
Open a terminal and run first commands safely.
Know User Roles
Understand the difference between root user and normal user.
1. What is Linux?
Linux is an operating system family based on the Linux kernel. An operating system is the main software that helps applications talk to hardware such as CPU, memory, disk, keyboard, mouse, and network devices.
In simple words: Linux is the software layer that manages a computer and allows users to run commands, applications, services, and servers.
Linux System Layers
2. Linux vs Windows
Both Linux and Windows are operating systems. The difference is mainly in usage style, licensing, administration, customization, and server adoption.
| Point | Linux | Windows |
|---|---|---|
| Common Use | Servers, cloud, DevOps, security tools, embedded systems, desktops | Desktops, office systems, gaming, enterprise workstations, Windows servers |
| Interface | CLI is heavily used; GUI is optional/common on desktop editions | GUI-first for most users; PowerShell/CMD used for administration |
| Software Installation | Package managers like apt, dnf, yum, zypper, pacman | Installers, Microsoft Store, winget, enterprise deployment tools |
| Customization | Highly customizable | Customizable, but more controlled |
| File Paths | /home/user/file.txt |
C:\Users\User\file.txt |
| Admin User | root or sudo-enabled user |
Administrator account / elevated privileges |
3. Linux Distributions
Linux itself is the kernel. A Linux distribution, also called a distro, packages the kernel with tools, software repositories, package manager, installer, desktop environment, and support model.
Beginner-friendly, cloud, desktop
Stable base, servers
Enterprise Linux
RHEL-compatible
Modern features
Enterprise environments
Security testing
Advanced customization
Trainer note: how to explain distro simply
Compare Linux distributions to different car models using the same engine concept. The Linux kernel is the engine. The distro adds dashboard, seats, tools, support, and user experience.
4. Where Linux is Used
Cloud Servers
AWS, Azure, Google Cloud, private cloud, web servers, application servers.
DevOps
CI/CD runners, Docker hosts, Kubernetes nodes, automation servers.
Cybersecurity
Security tools, forensics, penetration testing, monitoring platforms.
Mobile / Embedded
Android is based on the Linux kernel; routers and IoT devices often use Linux.
Enterprise Systems
Banking, telecom, insurance, databases, middleware, high availability systems.
Labs & Learning
Virtual machines, test environments, scripting, and automation practice.
5. CLI vs GUI
CLI - Command Line Interface
CLI means using commands typed in a terminal. It is fast, scriptable, remote-friendly, and commonly used by Linux administrators.
ls
pwd
cd /tmp
whoami
hostname
GUI - Graphical User Interface
GUI means using windows, icons, menus, and mouse clicks. It is easy for beginners but not always available on servers.
Open file manager
Navigate folders
Run apps visually
6. Shell and Terminal
Beginners often mix up terminal and shell. They are related, but not exactly the same.
The application window where you type commands.
The command interpreter that reads your command and runs it.
Common Linux shells include bash, sh, zsh, and fish.
For beginner Linux administration, bash is the most common starting point.
student@linux-vm:~$ echo "Hello Linux"
Hello Linux
Easy analogy
Terminal is like the phone device. Shell is like the person listening and responding to your instructions.
7. Root vs Normal User
Normal User
A normal user can work in their own home directory and run normal commands. This is safer for daily work.
student@linux-vm:~$ whoami
student
student@linux-vm:~$ pwd
/home/student
Root User
Root is the superuser. Root can modify system files, install software, create users, stop services, and change security settings.
root@linux-vm:~# whoami
root
root@linux-vm:~# systemctl status ssh
sudo only when required.
Prompt symbol hint
In many Linux systems, a normal user prompt ends with $, while a root prompt ends with #.
This is a useful hint, but do not rely on it blindly. Always check with whoami.
Hands-on Lab: First Login and Basic Commands
Lab goal: login to a Linux VM, open the terminal, run basic commands, and understand the command prompt.
Lab Requirements
Linux VM
Ubuntu, Rocky Linux, RHEL, Debian, or similar.
Credentials
Username and password or SSH key access.
Access Method
VM console, SSH, VMware, VirtualBox, cloud console, or terminal client.
Lab Flow
Access the Linux VM.
Use GUI terminal or SSH.
Try safe beginner commands.
Identify user, host, path, and symbol.
Step 1: Login to Linux VM
Option A: Login using VM console
- Start the Linux VM.
- Click inside the VM console window.
- Enter username, for example
student. - Enter password.
- After login, open the terminal application.
Option B: Login using SSH
From your laptop terminal:
ssh student@192.168.1.50
Replace student and 192.168.1.50 with your actual VM username and IP address.
Step 2: Open Terminal
Press Ctrl + Alt + T
Applications menu โ Terminal
Step 3: Run First Basic Commands
whoami
Shows the logged-in username.
pwd
Prints the present working directory.
ls
Lists files and folders in current location.
ls -l
Shows permissions, owner, size, and date.
ls -la
Shows hidden files starting with dot.
cd /tmp
Moves to the /tmp directory.
cd ~
Returns to your user's home directory.
hostname
Displays the system hostname.
Step 4: Understand the Prompt
student@linux-vm:~$
student
Current logged-in user.
linux-vm
Hostname of the machine.
~
Current directory. Tilde means user's home directory.
$
Normal user prompt. Root often shows #.
Expected Practice Output
student@linux-vm:~$ whoami
student
student@linux-vm:~$ pwd
/home/student
student@linux-vm:~$ hostname
linux-vm
student@linux-vm:~$ cd /tmp
student@linux-vm:/tmp$ pwd
/tmp
student@linux-vm:/tmp$ cd ~
student@linux-vm:~$ pwd
/home/student
Lab Tasks for Trainees
- Login to the Linux VM.
- Open terminal.
- Run
whoamiand write down the username. - Run
hostnameand write down the hostname. - Run
pwdand identify current directory. - Run
ls,ls -l, andls -la. Observe the difference. - Move to
/tmpusingcd /tmp. - Return to home directory using
cd ~. - Identify the four parts of the prompt: user, hostname, directory, prompt symbol.
rm -rf, disk commands, formatting commands, or changing system files.
๐ฎ Linux Adventure Playground
Practice safely inside a browser-based simulation. No real commands are executed on your computer.
๐งช Mission 1: Meet Your Linux Machine
Complete these tasks in the simulator or your real training VM.
Keyboard bonus: use the โ and โ arrow keys to browse simulated command history.
๐ต๏ธ Command Detective
Which command produced this output?
๐งฉ Prompt Puzzle
Click each part to decode it.
๐จ Which Distro Fits?
Choose your main goal.
Quick Review Questions
What is Linux?
Linux is an operating system family based on the Linux kernel. It manages hardware and allows users and applications to run.
What is the difference between CLI and GUI?
CLI uses typed commands. GUI uses windows, icons, menus, and mouse clicks.
What is a Linux distribution?
A distribution packages the Linux kernel with tools, package manager, installer, repositories, and support model.
What command shows the current user?
whoami
What command shows the current directory?
pwd
What does ~ mean in the prompt?
It represents the current user's home directory.
What is the root user?
Root is the superuser with full administrative control over the Linux system.
Why should beginners avoid using root casually?
Because root can modify or damage important system files and settings.
๐ Final Assessment and Badge
Score at least 70% to unlock the Terminal Explorer badge.
Badge Unlocked: Terminal Explorer
You completed Module 1 and proved that the terminal is no longer a mysterious black rectangle.
Trainer Delivery Notes
Suggested Duration
45 to 60 minutes including lab practice.
Theory: 30 min Lab: 20 min Review: 10 minBeginner Teaching Tips
- Do not start with heavy internals.
- First make trainees comfortable with login and terminal.
- Explain prompt before commands become complex.
- Repeat safe command practice several times.