Live Terminal Drill
Re-type the command exactly to clear each challenge.
loading... 0 / 12 mastered
WEEK 3 · SECURITY & WORKFLOWS · TUI: ./control-panel --day 20
Configure persistent environment variables, PATH exports, productivity aliases, and custom prompts in ~/.bashrc.
Pick a track or paste any YouTube URL.
Type commands, build streaks, and then review the source guide.
Re-type the command exactly to clear each challenge.
loading... 0 / 12 mastered
Tap a command when you practiced it in your own terminal.
Command explanation will appear here.
Output preview will appear here.
Fun facts about the active command will appear here.
Run a command to see result feedback.
Faster learning with topic cues, mini-missions, and external docs.
export and explain the output in one sentence.env and explain the output in one sentence.alias and explain the output in one sentence.mkdir -p /tmp/linux-dojo-day-20 && cd /tmp/linux-dojo-day-20 and explain the output in one sentence.Week 3 (Security & Workflows) · Session: Breakfast (Morning Foundation & Core Command Syntax) export, env, alias, ~/.bashrc, ~/.profile, source╔══════════════════════════════════════════════════════════════════════════════╗
║ 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 Pillar | How to Practice This Session |
|---|---|
1. Native TUI (./control-panel) | Run ./control-panel from repo root → Select Week 3 → Day 20 → Breakfast to drill interactive C lessons & quizzes. |
2. Web Workstation (astro-ui) | Open /day/20 → Select Breakfast tab → Type each target command in the live Mission Terminal to earn XP & streak mastery. |
| 3. Safe Local Sandbox | Run mkdir -p /tmp/linux-dojo-day-20 && cd /tmp/linux-dojo-day-20 to test every flag below without touching production files. |
for i in {1..5}; do echo "Number: $i"; donename=zothnameif [ "$USER" = "root" ]; then echo "Admin"; else echo "User"; fi[ or [[ for conditions=, !=, -lt, -eq, -f, -dread -p "Enter your name: " name
echo "Hello $name" >> greetings.txtread: Get user input> overwrites files; >> appendstee can write to file and print to screenType commands, build streaks, and then review the source guide.
Re-type the command exactly to clear each challenge.
loading... 0 / 12 mastered
Tap a command when you practiced it in your own terminal.
Command explanation will appear here.
Output preview will appear here.
Fun facts about the active command will appear here.
Run a command to see result feedback.
Faster learning with topic cues, mini-missions, and external docs.
export and explain the output in one sentence.env and explain the output in one sentence.alias and explain the output in one sentence.mkdir -p /tmp/linux-dojo-day-20 && cd /tmp/linux-dojo-day-20 and explain the output in one sentence.Week 3 (Security & Workflows) · Session: Lunch (Midday Operational Workflows & Flag Mastery) export, env, alias, ~/.bashrc, ~/.profile, source╔══════════════════════════════════════════════════════════════════════════════╗
║ 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 Pillar | How to Practice This Session |
|---|---|
1. Native TUI (./control-panel) | Run ./control-panel from repo root → Select Week 3 → Day 20 → Lunch to drill interactive C lessons & quizzes. |
2. Web Workstation (astro-ui) | Open /day/20 → Select Lunch tab → Type each target command in the live Mission Terminal to earn XP & streak mastery. |
| 3. Safe Local Sandbox | Run mkdir -p /tmp/linux-dojo-day-20 && cd /tmp/linux-dojo-day-20 to test every flag below without touching production files. |
find /var/log -name "*.log" -mtime +7 -deletewhile getopts "hvf:" opt; do
case $opt in
h) echo "Help";;
v) echo "Verbose mode";;
f) echo "File: $OPTARG";;
esac
donegetopts handles CLI options like -h, -v, -f filenameOPTARG gives the argument value passed with optionsbash -x script.sh
set -e # exits on any error
set -x # shows each command as it executesecho statements and input logsType commands, build streaks, and then review the source guide.
Re-type the command exactly to clear each challenge.
loading... 0 / 12 mastered
Tap a command when you practiced it in your own terminal.
Command explanation will appear here.
Output preview will appear here.
Fun facts about the active command will appear here.
Run a command to see result feedback.
Faster learning with topic cues, mini-missions, and external docs.
export and explain the output in one sentence.env and explain the output in one sentence.alias and explain the output in one sentence.mkdir -p /tmp/linux-dojo-day-20 && cd /tmp/linux-dojo-day-20 and explain the output in one sentence.Week 3 (Security & Workflows) · Session: Dinner (Evening Hardening, Pipelines & Verification Lab) export, env, alias, ~/.bashrc, ~/.profile, source╔══════════════════════════════════════════════════════════════════════════════╗
║ 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 Pillar | How to Practice This Session |
|---|---|
1. Native TUI (./control-panel) | Run ./control-panel from repo root → Select Week 3 → Day 20 → Dinner to drill interactive C lessons & quizzes. |
2. Web Workstation (astro-ui) | Open /day/20 → Select Dinner tab → Type each target command in the live Mission Terminal to earn XP & streak mastery. |
| 3. Safe Local Sandbox | Run mkdir -p /tmp/linux-dojo-day-20 && cd /tmp/linux-dojo-day-20 to test every flag below without touching production files. |
monitor_disk.sh:THRESHOLD=80
USAGE=$(df / | grep / | awk '{print $5}' | sed 's/%//g')
if [ "$USAGE" -gt "$THRESHOLD" ]; then
echo "Disk space high: $USAGE%" | mail -s "Disk Alert" root
fibackup_logs.sh:BACKUP_DIR="/backup/$(date +%F)"
mkdir -p "$BACKUP_DIR"
cp -r /var/log "$BACKUP_DIR"
find /backup -type d -mtime +7 -exec rm -rf {} +#!/bin/bash
for i in 1 2 3
echo "Number $i"bash -x broken_script.shdo after for lineset -e to stop on error, and set -x to trace