⣿ ZOTHOS × 1NC0GN30 30 DAYS OF LINUX FUNDAMENTALS · TUI (./control-panel) + WEB GUI · 90 MISSIONS
← Back to 30-Day Curriculum

WEEK 3 · SECURITY & WORKFLOWS · TUI: ./control-panel --day 18

Day 18: Text Processing Pipelines: Grep, Sed, Awk & Regex

Chain regex searches, stream editors, and column processors to extract actionable intelligence from logs.

XP 0
Streak 0
Command Mastery 0%
Study Music

YouTube Study Radio

Pick a track or paste any YouTube URL.

🍳 Breakfast (Syntax) Session

Type commands, build streaks, and then review the source guide.

Live Terminal Drill

Re-type the command exactly to clear each challenge.

target$ loading...

0 / 12 mastered

    Command Board

    Tap a command when you practiced it in your own terminal.

    Command Intel

    Meaning

    Command explanation will appear here.

    Sample Output

    Output preview will appear here.

    Useful Fun Fact

    Fun facts about the active command will appear here.

    Last Run Output

    Run a command to see result feedback.

    Knowledge Boost

    Faster learning with topic cues, mini-missions, and external docs.

    Key Topics

    ⚡ 60-Second Mental Model (Student Digest)🥐 Lesson 1: Understanding Backup Types🥐 Lesson 2: Using `tar` for Backup🥐 Lesson 3: Using `rsync` for Incremental Backups📚 Additional Resources

    Mini Missions

    • Mission 1: Run grep -E and explain the output in one sentence.
    • Mission 2: Run sed -i and explain the output in one sentence.
    • Mission 3: Run awk and explain the output in one sentence.
    • Mission 4: Run cut and explain the output in one sentence.

    📖 Digestible Study Guide & Visual Architecture

    Source: day-18-breakfast-guide.md · Synced with ./control-panel --day 18

    Day 18 · Breakfast — Text Processing Pipelines: Grep, Sed, Awk & Regex



    ZothOS × 1nc0gn30 Linux Dojo · Phase: Week 3 (Security & Workflows) · Session: Breakfast (Morning Foundation & Core Command Syntax)

    Core Commands: grep -E, sed -i, awk, cut, sort, uniq -c


    ⚡ 60-Second Mental Model (Student Digest)



    ╔══════════════════════════════════════════════════════════════════════════════╗
    ║  ZOTHOS × 1NC0GN30 // DEFENSE-IN-DEPTH & STREAM PIPELINE ARCHITECTURE        ║
    ╠══════════════════════════════════════════════════════════════════════════════╣
    ║                                                                              ║
    ║  [ INBOUND PACKET ] ──► [ Netfilter: iptables / nftables ]                   ║
    ║                                │ (ACCEPT)                                    ║
    ║                                ▼                                             ║
    ║                         [ Hardened SSHD + Fail2Ban ]                         ║
    ║                                │                                             ║
    ║                                ▼                                             ║
    ║                         [ DAC: chmod/chown ] ──► [ MAC: SELinux / AppArmor ] ║
    ║                                │                                             ║
    ║                                ▼                                             ║
    ║                         [ Auditd & Log Pipelines: grep | awk | sed ]         ║
    ╚══════════════════════════════════════════════════════════════════════════════╝


    Learning PillarHow to Practice This Session
    1. Native TUI (./control-panel)Run ./control-panel from repo root → Select Week 3 → Day 18 → Breakfast to drill interactive C lessons & quizzes.
    2. Web Workstation (astro-ui)Open /day/18 → Select Breakfast tab → Type each target command in the live Mission Terminal to earn XP & streak mastery.
    3. Safe Local SandboxRun mkdir -p /tmp/linux-dojo-day-18 && cd /tmp/linux-dojo-day-18 to test every flag below without touching production files.




    🥐 Lesson 1: Understanding Backup Types



  • Full Backup: Captures all files every time. Takes longest but easiest to restore.

  • Incremental Backup: Only backs up files changed since the last incremental backup. Fastest and smallest in size.

  • Differential Backup: Backs up all changes since the last full backup. Larger than incremental, but faster to restore.


  • 🥐 Lesson 2: Using tar for Backup



    tar -czvf backup.tar.gz /home/user/


  • -c: Create a new archive

  • -z: Compress using gzip

  • -v: Verbose output

  • -f: Specify filename


  • Use tar to compress and archive files for full backups or one-time archives.

    🥐 Lesson 3: Using rsync for Incremental Backups



    rsync -av --delete /home/user/ /mnt/backup/


  • -a: Archive mode (preserves permissions, symbolic links, etc.)

  • -v: Verbose output

  • --delete: Ensures that deletions in source are reflected in destination


  • rsync is ideal for incremental backups due to its efficiency and ability to sync only changed files.

    📚 Additional Resources



  • https://linuxize.com/post/how-to-create-and-extract-archives-using-the-tar-command-in-linux/

  • https://rsync.samba.org/