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โ€