Linux Environment
🐧 Linux Environment — Mini Reviewer (Student-Friendly Edition)
This topic is important kasi foundation ‘to ng Linux usage. Once you get this, mas madali na lahat ng susunod (commands, servers, system admin stuff).
1. What is an Operating System (OS)?
In short:
An Operating System is the boss program of your computer.
What does an OS do?
Controls hardware (CPU, memory, storage, devices)
Runs and manages applications
Acts as a bridge between user ↔ hardware
Real-life example:
Think of OS as a school administrator:
Students = applications
Teachers = hardware
Admin = OS (organizes everything para hindi chaotic)
UNIX & Linux connection
UNIX
Written in C
Mostly used in servers, scientific systems, networks
Linux
UNIX-like
Open-source
Developed by Linus Torvalds
Very flexible and customizable
📌 Quick memory trick:
OS = Brain of the computer
2. What is Linux?
Linux is not just one OS — it’s a family of operating systems.
Key ideas:
Open-source (anyone can view & modify the code)
Uses the Linux kernel (core part of the OS)
Very popular for:
Servers
Developers
Networking
Cybersecurity
Linux Distribution (Distro)
A Linux distro is:
Linux kernel
software
tools
desktop environment
All bundled together.
Example idea:
Kernel = engine
Distro = whole car 🚗
📌 Mnemonic:
Kernel = core, Distro = package
3. Linux Environment: Shells
A Shell is how you talk to the OS.
There are two main types:
GUI (Graphical User Interface)
Uses icons, windows, buttons
Beginner-friendly
Easy to learn
🧠 Example:
Clicking folders
Dragging files
Using menus
CLI (Command Line Interface)
Text-based
You type commands
More powerful and flexible
🧠 Example:
lscdrm
GUI vs CLI (Quick Comparison)
Feature | GUI | CLI |
|---|---|---|
Ease of use | Easy for beginners | Hard at first |
Control | Limited | Full control |
Speed | Slower | Faster |
Automation | ❌ | ✅ (scripts) |
📌 Exam tip:
GUI = easy
CLI = powerful
4. Linux Desktop Environments (GUI Types)
These are different “looks” of Linux.
GNOME
Simple
Clean design
Used by Ubuntu, Fedora, Debian
Lightweight (before)
🧠 Think: Minimalist vibes
KDE
Feature-packed
Very customizable
Looks like Windows
🧠 Think: Windows-style Linux
Xfce
Very lightweight
Good for old computers
No fancy animations
🧠 Think: Fast + simple
Cinnamon
Based on GNOME
Traditional desktop look
Smooth animations
🧠 Think: Modern but classic
📌 Mnemonic:
G-K-X-C
GNOME – KDE – Xfce – Cinnamon
5. Basic Linux Commands (Must-Memorize)
These are daily-use commands. Expect these in quizzes.
Information Commands
man→ manual of a commandwhatis→ short descriptionwhereis→ locate command fileswhoami→ shows current user
🧠 Example:
whoamiOutput: your username
Directory & File Commands
Command | Purpose |
|---|---|
| list files |
| current directory |
| change directory |
| create folder |
| delete empty folder |
| copy files |
| move/rename |
| delete file |
📌 Important shortcuts:
cd ..→ go backcd /→ rootcd ~→ home
📌 Memory trick:
ls = look
cd = change
rm = remove
6. Linux File System Structure
Linux uses a tree-like structure (rooted at /).
Types of Files
Ordinary files – text, images, programs
Directories – folders
Special files – hardware access
Important Linux Directories
Directory | Purpose |
|---|---|
| root of everything |
| basic programs |
| boot files |
| device files |
| config files |
| user files |
| libraries |
| optional software |
| system info |
| admin tools |
| shared resources |
| temporary files |
| variable data (logs) |
🧠 Real-life analogy:
/home= students’ lockers/etc= school rules/bin= tools room
📌 Mnemonic:
Home = users
Bin = programs
Etc = configs
🔁 Final Quick Recap (Exam Mode)
OS = controls everything
Linux = open-source UNIX-like OS
Shell = way to talk to OS
GUI = easy
CLI = powerful
Distros = Linux + software
Filesystem = tree structure
/home,/bin,/etcare 🔥 important
🧠 Memory Hacks (Fast Recall)
OS = Brain
Kernel = Core
CLI > GUI (power-wise)
“Home is for users”
“Bin has binaries”