Linux Applications
๐ง Linux Applications โ Reviewer
I. Why Text Editors Are Important in Linux
This part is important kasi ito โyung foundation ng topic. Linux is very text-based. Hindi siya puro click-click like Windows.
๐ Reasons for Using Text Editors in Linux
Scripts are written in text editors
Example: If youโre creating a shell script (
.sh) to automate tasks, you write it in a text editor.Real-life: Parang Google Docs mo for coding.
Linux programs use text-based data files
Many programs read plain text files for input.
Example: A configuration file that tells a server how to behave.
System services use text-based configuration files
Most Linux services (like network settings) are controlled by editing text files.
Meaning: If marunong ka mag-edit ng text file, may power ka sa system ๐
๐ฅ Quick Summary
Linux = text-driven system
If you know text editors โ you control Linux.
Memory Trick:
S-C-C = Scripts, Config, Control
II. Common Text-Based Editors in Linux
Letโs compare the popular ones.
Editor | Description | Best For |
|---|---|---|
emacs | Highly customizable, can act like IDE | Advanced users |
nano | Beginner-friendly | New Linux users |
gedit | GUI-based (needs desktop environment) | Users who prefer mouse |
vi / vim | Default native editor in Linux/Unix | Power users |
๐ง emacs
Customizable and extendable
Can work like IDE (Java, C, etc.)
Needs installation first
Think of it as: Linux version of VS Code (but more old school).
๐ง nano
Designed for beginners
Easy to use
Commands shown at the bottom
Perfect if youโre just starting.
๐ง gedit
Works only in GUI
Comes with GNOME desktop
More like Notepad
If walang GUI? Hindi siya tatakbo.
๐ง vi (or vim โ vi improved)
Found in almost all Linux systems
Very powerful
Uses modes
This one? Medyo intimidating at first. Pero once you master it, ang bilis mo na mag-edit.
๐ฅ Quick Summary
Beginner โ nano
GUI lover โ gedit
Advanced power user โ vi/vim
Customization beast โ emacs
Memory Trick:
NEGV
Nano โ Easy
Emacs โ Giant
Gedit โ Visual
Vi โ Veteran
III. The 3 Modes of vi Editor
Ito โyung pinaka-importante.
vi is NOT like normal editors. It works in modes.
Mode | What It Does |
|---|---|
Command Mode | Keys act as commands |
Insert Mode | You type text |
Replace Mode | You overwrite characters |
1โฃ Command Mode
Default mode when you open vi.
Keys = commands
Hindi ka pa nagta-type ng text
Example:
Press dd โ deletes line
Press yy โ copies line
2โฃ Insert Mode
Press
iNow you can type text
To exit insert mode:
๐ Press Esc
3โฃ Replace Mode
Replaces characters instead of inserting
Overwrites text
๐ง Real-Life Analogy
Think of vi like:
Command Mode = Remote control
Insert Mode = Typing mode
Replace Mode = Correction pen
๐ฅ Quick Summary
Open vi โ Default is Command Mode
Press i โ Insert Mode
Press Esc โ Back to Command
Memory Trick:
ICE
Insert โ Command โ Escape
IV. Basic vi Commands
๐งญ Cursor Movement Commands
Key | Moves |
|---|---|
h | Left |
l | Right |
j | Down |
k | Up |
0 | Beginning of line |
^ | First non-space character |
$ | End of line |
w | Next word |
G | Last line |
numberG | Go to specific line |
๐ง Trick to Remember Movement
The keys h j k l form an arrow shape on keyboard.
h โ
j โ
k โ
l โ
Classic hacker movement setup ๐
โ Inserting & Appending
iโ Insert at cursorAโ Append at end of lineoโ Insert new line belowOโ Insert new line above
Real-life:
o= open belowO= open above
โ Text Deletion Commands
Command | Deletes |
|---|---|
x | One character |
3x | 3 characters |
dd | One line |
5dd | 5 lines |
d$ | To end of line |
d0 | To beginning of line |
dG | To end of file |
๐ง Pattern Recognition
If you notice:
d= deletey= yank (copy)Number before command = multiplier
So:
5dd = delete 5 lines
3x = delete 3 characters
๐ Yanking (Copying) Commands
Command | Copies |
|---|---|
yy | One line |
5yy | 5 lines |
y$ | To end of line |
yG | To end of file |
Think:
y = yank = copy
d = delete
๐ฅ Quick Summary for Editing
d = delete
y = copy
p = paste (common vim command)
Number before = multiply action
Memory Trick:
โDY = Destroy or Yoinkโ
V. Productivity Software in Linux
Linux is not just terminal ha. May productivity apps din.
LibreOffice โ Linux Office Suite
Includes:
Tool | Purpose |
|---|---|
Writer | Word processing |
Calc | Spreadsheet |
Impress | Presentation |
Draw | Vector graphics |
Base | Database |
Math | Formula editor |
๐ Writer
Like MS Word
Has AutoComplete
Suggests words
๐ Calc
Like Excel
Advanced DataPilot
Real-time data integration
Perfect for data analysis.
๐ค Impress
Like PowerPoint
Fontworks (2D & 3D text)
Presenter Console (see notes, timer, next slide)
๐จ Draw
For diagrams, flowcharts
Can create 3D objects
Good for technical drawings
๐ Base
Database software
Supports:
MySQL/MariaDB
MS Access
PostgreSQL
๐งฎ Math
For inserting formulas
Good for scientific docs
๐ฅ Quick Summary
LibreOffice = Complete office suite for Linux.
Memory Trick:
W-C-I-D-B-M
Writer
Calc
Impress
Draw
Base
Math
VI. GIMP
Recommended image editor for Linux.
Features:
Customizable Interface
Photo Enhancement
Digital Retouching
Hardware Support
Think:
Linux version of Photoshop (free version vibes).
๐ฅ FINAL RECAP (Exam Weapon Mode)
1โฃ Linux relies heavily on text editors
Scripts + config files = text-based.
2โฃ Editors
nano โ beginner
gedit โ GUI
emacs โ customizable
vi/vim โ powerful default
3โฃ vi Modes
Command
Insert
Replace
4โฃ Important vi Commands
h j k l โ movement
dd โ delete line
yy โ copy line
d$ โ delete to end
number + command โ multiplier
5โฃ LibreOffice Tools
Writer, Calc, Impress, Draw, Base, Math
6โฃ GIMP
Linux image editor
๐ง Ultimate Memory Trick
Think of Linux as:
โText first, GUI second.โ
Then remember:
VIM RULES
V โ Various modes
I โ Insert with i
M โ Multiply commands