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:

  • ls

  • cd

  • rm


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 command

  • whatis → short description

  • whereis → locate command files

  • whoami → shows current user

🧠 Example:

whoami

Output: your username


Directory & File Commands

Command

Purpose

ls

list files

pwd

current directory

cd

change directory

mkdir

create folder

rmdir

delete empty folder

cp

copy files

mv

move/rename

rm

delete file

📌 Important shortcuts:

  • cd .. → go back

  • cd / → root

  • cd ~ → 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

  1. Ordinary files – text, images, programs

  2. Directories – folders

  3. Special files – hardware access


Important Linux Directories

Directory

Purpose

/

root of everything

/bin

basic programs

/boot

boot files

/dev

device files

/etc

config files

/home

user files

/lib

libraries

/opt

optional software

/proc

system info

/sbin

admin tools

/usr

shared resources

/tmp

temporary files

/var

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, /etc are 🔥 important


🧠 Memory Hacks (Fast Recall)

  • OS = Brain

  • Kernel = Core

  • CLI > GUI (power-wise)

  • “Home is for users”

  • “Bin has binaries”