Live Terminal Drill
Re-type the command exactly to clear each challenge.
loading... 0 / 12 mastered
WEEK 2 · SYSTEM OPS · TUI: ./control-panel --day 8
Write executable Bash scripts with variables, if/else branches, loops, and reusable functions.
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 and explain the output in one sentence.chmod +x and explain the output in one sentence.echo and explain the output in one sentence.mkdir -p /tmp/linux-dojo-day-08 && cd /tmp/linux-dojo-day-08 and explain the output in one sentence.Week 2 (System Ops) · Session: Breakfast (Morning Foundation & Core Command Syntax) bash, chmod +x, echo, read, if/else, for╔══════════════════════════════════════════════════════════════════════════════╗
║ ZOTHOS × 1NC0GN30 // PROCESS, KERNEL & NETWORK OPERATIONS PIPELINE ║
╠══════════════════════════════════════════════════════════════════════════════╣
║ ║
║ ┌─────────────────┐ fork() / execve() ┌────────────────────────────┐ ║
║ │ PID 1: systemd │ ──────────────────────► │ Active Daemons & Tasks │ ║
║ └────────┬────────┘ │ • nice / renice [-20..19] │ ║
║ │ │ • SIGTERM(15) / SIGKILL(9)│ ║
║ ▼ └─────────────┬──────────────┘ ║
║ ┌─────────────────┐ /proc & sysctl ┌─────────────▼──────────────┐ ║
║ │ Kernel Modules │ ◄─────────────────────► │ Network & Storage Stack │ ║
║ │ lsmod / modprobe│ │ ip route • ss • /etc/fstab │ ║
║ └─────────────────┘ └────────────────────────────┘ ║
╚══════════════════════════════════════════════════════════════════════════════╝| Learning Pillar | How to Practice This Session |
|---|---|
1. Native TUI (./control-panel) | Run ./control-panel from repo root → Select Week 2 → Day 08 → Breakfast to drill interactive C lessons & quizzes. |
2. Web Workstation (astro-ui) | Open /day/8 → 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-08 && cd /tmp/linux-dojo-day-08 to test every flag below without touching production files. |
#!/bin/bash): Specifies the shell interpreter used to execute the script.#!/bin/bash
echo "Hello, World!"wget http://example.com/package.tar.gz
tar -xvf package.tar.gz
./configure
make
sudo make installmy_variable="Hello, World!"
echo $my_variableif [ $my_variable = "Hello, World!" ]; then
echo "Match found!"
else
echo "No match."
fi
for i in 1 2 3; do
echo $i
donemy_function() {
echo "Hello, World!"
}
my_function./configure --prefix=/usr/local
./configure --enable-debugType 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 and explain the output in one sentence.chmod +x and explain the output in one sentence.echo and explain the output in one sentence.mkdir -p /tmp/linux-dojo-day-08 && cd /tmp/linux-dojo-day-08 and explain the output in one sentence.Week 2 (System Ops) · Session: Lunch (Midday Operational Workflows & Flag Mastery) bash, chmod +x, echo, read, if/else, for╔══════════════════════════════════════════════════════════════════════════════╗
║ ZOTHOS × 1NC0GN30 // PROCESS, KERNEL & NETWORK OPERATIONS PIPELINE ║
╠══════════════════════════════════════════════════════════════════════════════╣
║ ║
║ ┌─────────────────┐ fork() / execve() ┌────────────────────────────┐ ║
║ │ PID 1: systemd │ ──────────────────────► │ Active Daemons & Tasks │ ║
║ └────────┬────────┘ │ • nice / renice [-20..19] │ ║
║ │ │ • SIGTERM(15) / SIGKILL(9)│ ║
║ ▼ └─────────────┬──────────────┘ ║
║ ┌─────────────────┐ /proc & sysctl ┌─────────────▼──────────────┐ ║
║ │ Kernel Modules │ ◄─────────────────────► │ Network & Storage Stack │ ║
║ │ lsmod / modprobe│ │ ip route • ss • /etc/fstab │ ║
║ └─────────────────┘ └────────────────────────────┘ ║
╚══════════════════════════════════════════════════════════════════════════════╝| Learning Pillar | How to Practice This Session |
|---|---|
1. Native TUI (./control-panel) | Run ./control-panel from repo root → Select Week 2 → Day 08 → Lunch to drill interactive C lessons & quizzes. |
2. Web Workstation (astro-ui) | Open /day/8 → 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-08 && cd /tmp/linux-dojo-day-08 to test every flag below without touching production files. |
chmod and chown is essential for any Linux user or administrator.chmod 755 myscript.shchown user:group myfile.txtvi, nano, or emacs allows you to efficiently create, modify, and maintain scripts. This lesson covers the basics of opening, editing, and saving files in these editors.vi myscript.shnano myscript.shuseradd, usermod, and groupadd allow you to add, modify, and manage users and groups, ensuring proper access and security protocols are followed.useradd newuserpasswd newuserusermod -aG groupname usernamegroupadd newgroupcommand [options] filename.vi and the basic command to enter insert mode.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 and explain the output in one sentence.chmod +x and explain the output in one sentence.echo and explain the output in one sentence.mkdir -p /tmp/linux-dojo-day-08 && cd /tmp/linux-dojo-day-08 and explain the output in one sentence.Week 2 (System Ops) · Session: Dinner (Evening Hardening, Pipelines & Verification Lab) bash, chmod +x, echo, read, if/else, for╔══════════════════════════════════════════════════════════════════════════════╗
║ ZOTHOS × 1NC0GN30 // PROCESS, KERNEL & NETWORK OPERATIONS PIPELINE ║
╠══════════════════════════════════════════════════════════════════════════════╣
║ ║
║ ┌─────────────────┐ fork() / execve() ┌────────────────────────────┐ ║
║ │ PID 1: systemd │ ──────────────────────► │ Active Daemons & Tasks │ ║
║ └────────┬────────┘ │ • nice / renice [-20..19] │ ║
║ │ │ • SIGTERM(15) / SIGKILL(9)│ ║
║ ▼ └─────────────┬──────────────┘ ║
║ ┌─────────────────┐ /proc & sysctl ┌─────────────▼──────────────┐ ║
║ │ Kernel Modules │ ◄─────────────────────► │ Network & Storage Stack │ ║
║ │ lsmod / modprobe│ │ ip route • ss • /etc/fstab │ ║
║ └─────────────────┘ └────────────────────────────┘ ║
╚══════════════════════════════════════════════════════════════════════════════╝| Learning Pillar | How to Practice This Session |
|---|---|
1. Native TUI (./control-panel) | Run ./control-panel from repo root → Select Week 2 → Day 08 → Dinner to drill interactive C lessons & quizzes. |
2. Web Workstation (astro-ui) | Open /day/8 → 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-08 && cd /tmp/linux-dojo-day-08 to test every flag below without touching production files. |
grep for Text Searching](#using-grep-for-text-searching)sed for Stream Editing](#using-sed-for-stream-editing)awk for Pattern Scanning and Processing](#using-awk-for-pattern-scanning-and-processing)grep, sed, and awk.#!/bin/bash
if [ $# -eq 0 ]; then
echo "No arguments provided"
exit 1
fi
echo "You provided $# arguments: $@"# Searching for lines that start with 'error' in a log file:
grep '^error' /var/log/syslog
# Replacing 'foo' with 'bar' in a file:
sed 's/foo/bar/g' input.txt > output.txt
# Extracting the second field from a CSV file:
awk -F ',' '{print $2}' data.csvCopy code
grep 'pattern' file.txt
grep -r 'error' /var/log
grep -i 'error' file.txt # Case-insensitive searchCopy code
sed 's/old/new/g' file.txt
sed '/pattern/d' file.txt
sed '2i\
This is a new line' file.txtawk '{print $1}' file.txt # Print the first field of each line
awk -F ':' '{print $1, $3}' /etc/passwd # Print the username and UID from /etc/passwd
awk '$3 > 1000' file.txt # Print lines where the third field is greater than 1000# and $@ variables in shell scripting?