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 i

  • Now 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 cursor

  • A โ†’ Append at end of line

  • o โ†’ Insert new line below

  • O โ†’ Insert new line above

Real-life:

  • o = open below

  • O = 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 = delete

  • y = 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