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โ