Live Terminal Drill
Re-type the command exactly to clear each challenge.
loading... 0 / 12 mastered
WEEK 2 · SYSTEM OPS · TUI: ./control-panel --day 10
Install, audit, and upgrade packages across Debian/Ubuntu (apt/dpkg) and Enterprise Linux (dnf/rpm).
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.
apt and explain the output in one sentence.apt-get and explain the output in one sentence.dnf and explain the output in one sentence.mkdir -p /tmp/linux-dojo-day-10 && cd /tmp/linux-dojo-day-10 and explain the output in one sentence.Week 2 (System Ops) · Session: Breakfast (Morning Foundation & Core Command Syntax) apt, apt-get, dpkg, dnf, yum, rpm╔══════════════════════════════════════════════════════════════════════════════╗
║ 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 10 → Breakfast to drill interactive C lessons & quizzes. |
2. Web Workstation (astro-ui) | Open /day/10 → 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-10 && cd /tmp/linux-dojo-day-10 to test every flag below without touching production files. |
ssh user@hostnamessh-keygen -t rsa -b 4096 -C your_email@example.comid_rsa.pub) can be shared with remote servers.id_rsa) should be kept secure.ssh-copy-id user@hostnameauthorized_keys file automates the authentication process for future logins.~/.ssh/config Host myserver
HostName hostname.example.com
User myuser
Port 2222ssh myserver to connect to hostname.example.com as myuser on port 2222.scp local_file user@hostname:/remote/directory/scp user@hostname:/remote/file /local/directory/sftp user@hostnamels, cd, get, and put commands within the SFTP session.ssh user@hostname 'command'ssh user@hostname 'df -h' to show disk usage on the remote server.tmuxtmux attachCtrl+b drsync -avz /local/directory/ user@hostname:/remote/directory/rsync only transfers the differences between source and destination, making it efficient for syncing large directories.ssh user@hostnamessh-copy-id user@hostnamescp local_file user@hostname:/remote/directory/sftp user@hostnamessh user@hostname 'command'tmux, tmux attach, Ctrl+b drsync only transfers differences between source and destination.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.
apt and explain the output in one sentence.apt-get and explain the output in one sentence.dnf and explain the output in one sentence.mkdir -p /tmp/linux-dojo-day-10 && cd /tmp/linux-dojo-day-10 and explain the output in one sentence.Week 2 (System Ops) · Session: Lunch (Midday Operational Workflows & Flag Mastery) apt, apt-get, dpkg, dnf, yum, rpm╔══════════════════════════════════════════════════════════════════════════════╗
║ 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 10 → Lunch to drill interactive C lessons & quizzes. |
2. Web Workstation (astro-ui) | Open /day/10 → 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-10 && cd /tmp/linux-dojo-day-10 to test every flag below without touching production files. |
ssh username@remote_host
### 2. Copying Files with SCP
Secure Copy Protocol (SCP) allows you to securely transfer files between hosts over SSH.
To copy a file from your local machine to a remote server:
`` bash
To copy a file from a remote server to your local machine:
`` bash
### 3. Monitoring Remote Systems with SSH
You can execute commands on a remote system over SSH to monitor or manage it.
For example, to check the disk usage on a remote server:
`` bash
Or to view the running processes: bash### 4. Remote File System Mounting with SSHFS
SSHFS (SSH File System) allows you to mount a remote filesystem locally using SSH.
To mount a remote directory: bashTo unmount the directory: bash### 5. Rescue Mode and Single-User Mode
Rescue mode is a way to boot your system with minimal services to troubleshoot issues. Single-user mode is a similar mode used primarily for maintenance.
To boot into single-user mode, you can edit the GRUB boot menu and add single or rescue to the boot parameters.
### 6. Resetting the Root Password
If you lose the root password, you can reset it by booting into single-user mode.
Once in single-user mode, use the passwd command to reset the root password: bashEnter and confirm the new password when prompted.
### 7. Recovering Deleted Files with extundelete
extundelete is a utility that can recover deleted files from ext3/ext4 filesystems.
To recover a deleted file, run: bashReplace /dev/sdX with the appropriate device identifier and specify the path to the file.
### 8. Using chroot for System Repair
The chroot command changes the apparent root directory for a process, useful in system recovery.
For example, if you need to repair a system from a live CD:
Mount the filesystem: bashChange root to the mounted system: bashNow you can run commands as if you were on the original system.
### 9. Reinstalling GRUB Bootloader
If the GRUB bootloader is corrupted, you can reinstall it using a live CD or rescue mode.
Boot into a live environment.
Mount the root filesystem: bashReinstall GRUB: bash### 10. System Rescue with dd
The dd command can be used for low-level copying and backup, useful in rescue scenarios.
For example, to create a disk image: bashTo restore the image: bash## Questions and Answers
1. **What command would you use to securely connect to a remote server as user 'john'?**bash#### How do you copy a file named 'report.txt' to a remote server at '/home/user/' using SCP?bash#### What is the command to display disk usage on a remote server using SSH?bash#### How can you mount a remote directory '/data' to '/mnt/remote_data' using SSHFS?bash#### Which boot parameter would you add to GRUB to boot into single-user mode?bash#### What command is used to reset the root password after booting into single-user mode?bash#### How would you recover a deleted file '/home/user/document.txt' using extundelete?bash#### Which command changes the root directory to '/mnt' for system repair?bash#### How do you reinstall GRUB to the first disk after booting from a live CD?bash#### What dd command would you use to create a backup image of a disk '/dev/sda'?bashType 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.
apt and explain the output in one sentence.apt-get and explain the output in one sentence.dnf and explain the output in one sentence.mkdir -p /tmp/linux-dojo-day-10 && cd /tmp/linux-dojo-day-10 and explain the output in one sentence.Week 2 (System Ops) · Session: Dinner (Evening Hardening, Pipelines & Verification Lab) apt, apt-get, dpkg, dnf, yum, rpm╔══════════════════════════════════════════════════════════════════════════════╗
║ 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 10 → Dinner to drill interactive C lessons & quizzes. |
2. Web Workstation (astro-ui) | Open /day/10 → 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-10 && cd /tmp/linux-dojo-day-10 to test every flag below without touching production files. |
ssh user@remote_hostuser with your username and remote_host with the server's address. scp file.txt user@remote_host:/remote/directoryfile.txt with your file name, user with your username, and /remote/directory with the destination directory. ssh user@remote_host 'df -h' sshfs user@remote_host:/remote/data /mnt/local_mount/remote/data with the directory on the remote server and /mnt/local_mount with your local mount point. Append 'single' to the kernel line in GRUB during boot. passwd extundelete /dev/sdX --restore-file /path/to/file/dev/sdX with your disk and /path/to/file with the file path.chroot changes the root directory for the current running process. chroot /mntchroot to change the root directory to /mnt for system repair. grub-install --root-directory=/mnt /dev/sdX/dev/sdX with your disk.dd is a powerful tool to create disk images for backups. dd if=/dev/sda of=/path/to/backup.imgdd command. Replace /dev/sda with your disk and /path/to/backup.img with the desired output path. ssh john@remote_host
How do you copy a file named 'report.txt' to a remote server at '/home/user/' using SCP?bashWhat is the command to display disk usage on a remote server using SSH?bashHow can you mount a remote directory '/data' to '/mnt/remote_data' using SSHFS?bashWhich boot parameter would you add to GRUB to boot into single-user mode?bashWhat command is used to reset the root password after booting into single-user mode?bashHow would you recover a deleted file '/home/user/document.txt' using extundelete?bashWhich command changes the root directory to '/mnt' for system repair?bashHow do you reinstall GRUB to the first disk after booting from a live CD?bashWhat dd command would you use to create a backup image of a disk '/dev/sda'?bash