Live Terminal Drill
Re-type the command exactly to clear each challenge.
loading... 0 / 12 mastered
WEEK 4 · ADVANCED OPS · TUI: ./control-panel --day 23
Parse CLI flags with getopts, validate inputs, and build modular command-line utilities.
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.
bash -x and explain the output in one sentence.mkdir -p /tmp/linux-dojo-day-23 && cd /tmp/linux-dojo-day-23 and explain the output in one sentence.bash and explain the output in one sentence.echo "Welcome, $name!" and explain the output in one sentence.Week 4 (Advanced Ops) · Session: Breakfast (Morning Foundation & Core Command Syntax) getopts, shift, bash -x, shellcheck, printf, jq╔══════════════════════════════════════════════════════════════════════════════╗
║ ZOTHOS × 1NC0GN30 // PRODUCTION TELEMETRY, SYSTEMD & RECOVERY MATRIX ║
╠══════════════════════════════════════════════════════════════════════════════╣
║ ║
║ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ ║
║ │ CPU & SCHED │ │ MEMORY / VM │ │ DISK & VFS │ │ NET SOCKETS │ ║
║ │ top / mpstat │ │ free / vmstat│ │ iostat / df │ │ ss -tulpen │ ║
║ └──────┬───────┘ └──────┬───────┘ └──────┬───────┘ └──────┬───────┘ ║
║ └──────────────────┴─────────┬────────┴──────────────────┘ ║
║ ▼ ║
║ [ Automated Remediation: systemd + cron + rsync ] ║
╚══════════════════════════════════════════════════════════════════════════════╝| Learning Pillar | How to Practice This Session |
|---|---|
1. Native TUI (./control-panel) | Run ./control-panel from repo root → Select Week 4 → Day 23 → Breakfast to drill interactive C lessons & quizzes. |
2. Web Workstation (astro-ui) | Open /day/23 → 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-23 && cd /tmp/linux-dojo-day-23 to test every flag below without touching production files. |
name="zoth"
echo "Welcome, $name!""$var" to safely access values.for i in {1..5}; do
echo "Count: $i"
donecount=1
while [ $count -le 5 ]; do
echo "Still counting: $count"
((count++))
donenum=10
if [ $num -gt 5 ]; then
echo "Greater than 5"
else
echo "5 or less"
fiif [ -f file.txt ]; then
echo "File exists"
elif [ -d file.txt ]; then
echo "It's a directory"
else
echo "Does not exist"
firead -p "Enter your username: " username
echo "Hello, $username"echo "Log Entry" >> log.txt> log.txtfor and whileday-23-breakfast simulation to practice live.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.
bash -x and explain the output in one sentence.mkdir -p /tmp/linux-dojo-day-23 && cd /tmp/linux-dojo-day-23 and explain the output in one sentence.bash and explain the output in one sentence.!/bin/bash and explain the output in one sentence.Week 4 (Advanced Ops) · Session: Lunch (Midday Operational Workflows & Flag Mastery) getopts, shift, bash -x, shellcheck, printf, jq╔══════════════════════════════════════════════════════════════════════════════╗
║ ZOTHOS × 1NC0GN30 // PRODUCTION TELEMETRY, SYSTEMD & RECOVERY MATRIX ║
╠══════════════════════════════════════════════════════════════════════════════╣
║ ║
║ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ ║
║ │ CPU & SCHED │ │ MEMORY / VM │ │ DISK & VFS │ │ NET SOCKETS │ ║
║ │ top / mpstat │ │ free / vmstat│ │ iostat / df │ │ ss -tulpen │ ║
║ └──────┬───────┘ └──────┬───────┘ └──────┬───────┘ └──────┬───────┘ ║
║ └──────────────────┴─────────┬────────┴──────────────────┘ ║
║ ▼ ║
║ [ Automated Remediation: systemd + cron + rsync ] ║
╚══════════════════════════════════════════════════════════════════════════════╝| Learning Pillar | How to Practice This Session |
|---|---|
1. Native TUI (./control-panel) | Run ./control-panel from repo root → Select Week 4 → Day 23 → Lunch to drill interactive C lessons & quizzes. |
2. Web Workstation (astro-ui) | Open /day/23 → 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-23 && cd /tmp/linux-dojo-day-23 to test every flag below without touching production files. |
getopts, and debug with common shell flags.#!/bin/bash
find /var/log -type f -name "*.log" -mtime +7 -exec rm {} \;
echo "Old logs removed."#!/bin/bash
usage=$(df -h / | awk 'NR==2 {print $5}' | sed 's/%//')
if [ $usage -gt 80 ]; then
echo "Disk space critical: $usage% used."
fi#!/bin/bash
while getopts ":u:p:" opt; do
case $opt in
u) user=$OPTARG ;;
p) path=$OPTARG ;;
*) echo "Invalid option" ; exit 1 ;;
esac
done
echo "User: $user"
echo "Path: $path"-u zoth -p /home/zothbash -x script.shset -eset -xbash -x, but works inlinegetoptsbash -x, set -e, and set -xday-23-lunch program to interactively try each topic.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.
bash -x and explain the output in one sentence.mkdir -p /tmp/linux-dojo-day-23 && cd /tmp/linux-dojo-day-23 and explain the output in one sentence.bash -x script.sh and explain the output in one sentence.bash and explain the output in one sentence.Week 4 (Advanced Ops) · Session: Dinner (Evening Hardening, Pipelines & Verification Lab) getopts, shift, bash -x, shellcheck, printf, jq╔══════════════════════════════════════════════════════════════════════════════╗
║ ZOTHOS × 1NC0GN30 // PRODUCTION TELEMETRY, SYSTEMD & RECOVERY MATRIX ║
╠══════════════════════════════════════════════════════════════════════════════╣
║ ║
║ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ ║
║ │ CPU & SCHED │ │ MEMORY / VM │ │ DISK & VFS │ │ NET SOCKETS │ ║
║ │ top / mpstat │ │ free / vmstat│ │ iostat / df │ │ ss -tulpen │ ║
║ └──────┬───────┘ └──────┬───────┘ └──────┬───────┘ └──────┬───────┘ ║
║ └──────────────────┴─────────┬────────┴──────────────────┘ ║
║ ▼ ║
║ [ Automated Remediation: systemd + cron + rsync ] ║
╚══════════════════════════════════════════════════════════════════════════════╝| Learning Pillar | How to Practice This Session |
|---|---|
1. Native TUI (./control-panel) | Run ./control-panel from repo root → Select Week 4 → Day 23 → Dinner to drill interactive C lessons & quizzes. |
2. Web Workstation (astro-ui) | Open /day/23 → 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-23 && cd /tmp/linux-dojo-day-23 to test every flag below without touching production files. |
#!/bin/bash
THRESHOLD=85
USAGE=$(df / | awk 'NR==2 {print $5}' | sed 's/%//')
if [ $USAGE -gt $THRESHOLD ]; then
echo "Disk space on / is at $USAGE%" | mail -s "Disk Alert" admin@localhost
fi/etc to /backups/etc-YYYYMMDD.tar.gz#!/bin/bash
DATE=$(date +%F)
BACKUP_FILE="/backups/etc-$DATE.tar.gz"
tar -czf "$BACKUP_FILE" /etc
find /backups -name "etc-*.tar.gz" -mtime +7 -deletebash -x script.sh to traceset -e and set -u to catch logic and usage errorsif or [] usageday-23-dinner to walk through each lab interactively.