0% Complete
0/0 Steps
  1. About

    About Cyber School
  2. About BDO
  3. The CSRP program Syllabus
  4. Module 1
    The Cyber World and CIA Triad
    6 Topics
  5. The OSI Model and Network Layers
    6 Topics
  6. IP Addressing, Subnetting and Routing
    6 Topics
  7. DNS and DHCP
    6 Topics
  8. Windows Server Administration
    6 Topics
  9. Active Directory and Identity Management
    6 Topics
  10. Linux CLI Fundamentals
    6 Topics
  11. Linux Permissions and Hardening
    6 Topics
  12. Module 2 - Defense Technologies and Cyber Tools
    Firewall Architecture and Rule Design
    5 Topics
  13. NAT and Secure Traffic Mapping
    6 Topics
  14. Enterprise VPN Solutions
    6 Topics
  15. IDS and IPS
    5 Topics
  16. Identity and Access Management
    5 Topics
  17. Multi-Factor Authentication
    6 Topics
  18. Data Loss Prevention
    6 Topics
  19. Endpoint Security and EDR
    6 Topics
  20. Mail Security
    6 Topics
  21. Web Proxy and URL Filtering
    6 Topics
  22. Regulation and Compliance
    6 Topics
  23. Cloud Security
    6 Topics
    |
    1 Quiz
  24. Module 3 - Ai in security
    AI in Security
    5 Topics
  25. ML Anomaly Detection
    5 Topics
  26. AI Threats
    5 Topics
  27. LLM Defense
    6 Topics
  28. Module 4 - Offensive Cyber & Vulnerability Scanning
    Cyber Kill Chain and Attacker Mindset
    6 Topics
  29. OSINT and Public Intelligence Gathering
    6 Topics
  30. Network and Port Scanning with Nmap
    6 Topics
  31. Vulnerability Scanning
    6 Topics
  32. Exploitation Fundamentals
    6 Topics
  33. Web Application Security
    5 Topics
  34. Social Engineering
    5 Topics
  35. Password and Hash Cracking
    5 Topics
  36. Module 5 - SOC and Advance Cyber Analyst
    SOC Structure and Operations
    6 Topics
  37. SIEM Fundamentals with Splunk
    6 Topics
  38. Alerting and Dashboards
    6 Topics
  39. Incident Response
    5 Topics
  40. Basic Digital Forensics
  41. Capstone A - The Attack: Breaching Meridian
  42. Capstone B - The Defense: Defending Meridian
  43. ISC2 CC Mock Exam and CSRP Graduation
    2 Quizzes
Lesson 10, Topic 3
In Progress

Linux CLI Fundamentals Lab Guide

Cyber School 23/11/2026
Lesson Progress
0% Complete

HANDS-ON LAB GUIDE — STUDENT (v2.1)

L7 — Linux CLI Fundamentals

First CLI lesson. Expect to feel slow at first. That’s normal. Every senior engineer started where you are now.

Lesson 7 — the big picture

Topics

#TopicTaughtPracticed
1CLI rationale + anatomy of a commandCh.1, TB §17-Quick
2Filesystem (pwd / ls / cd / paths)Ch.2, TB §2Lab 7.1
3Read/write + pipes + redirection + grep + findCh.3, TB §3Lab 7.2
4Processes (ps / top) + network (ss / ip / ping / curl) + killCh.4, TB §4Lab 7.3
5Multi-step composition (Challenge)Ch.5, TB §5Challenge

Today’s environment

Browser-based SSH terminal to a per-learner Ubuntu 22.04 VM. Username jdoe. Working directory for today’s labs: ~/csrp-labs/lesson7/.

Prior knowledge

L1-L6.

Not yet (L8 territory)

File permissions (chmod/chown), sudo, SUID, SSH hardening, privilege escalation.

The five-lab arc

#LabDifficultyTimeEarns
07-Quick “Run whoami”Quick-win~2 minFirst point
1Lab 7.1 “Linux Filesystem Navigation”Intro~12 minPoints
2Lab 7.2 “Search, Grep, Pipes, and Redirection”Core~15 minPoints
3Lab 7.3 “Processes and Network Checks”Core~15 minPoints
4Challenge — “Linux CLI Master”Challenge~25-35 min[Linux-CLI-Foundations] badge

Lab 0 — 7-Quick — “Run whoami”

Why: every Linux engineer’s first command on a new machine is “who am I logged in as?” Goal: SSH; type whoami; read.

StepDoWhyWhat you should see
1Click SSH-launch.Connect to Ubuntu VM.Black terminal; prompt like jdoe@meridian-linux:~$.
2Type whoami Enter.First command.jdoe
3Mark complete.First L7 point.✅

Reference: man whoami.


Lab 1 — Lab 7.1 — “Linux Filesystem Navigation”

Why as a cyber professional: every investigation, audit, install starts with “where am I, what’s here?”

Goal: Navigate /var/log; list with -la; return home; locate MERIDIAN_README.txt; print its absolute path.

StepDoWhyWhat
1pwdWhere am I?/home/jdoe
2cd /var/logChange dir.Prompt updates.
3pwdConfirm./var/log
4ls -laAll files + details.Long log list.
5cd ~ then pwdHome./home/jdoe
6find / -name “MERIDIAN_README.txt” 2>/dev/nullSearch whole filesystem; suppress errors.Full path.
7Submit the path.Validation.Pass.

Common mistakes: case-sensitivity (/var/Log ≠ /var/log); missing 2>/dev/null (noisy output).

Reference: man pwd, man ls, man cd, man find.


Lab 2 — Lab 7.2 — “Search, Grep, Pipes, and Redirection”

Why: pipes are the CLI superpower. A one-liner replaces hours of scrolling.

Goal: Analyze /var/log/auth.log:

1. Tail last 20 lines.

2. Find the most-recent successful login.

3. Count failed-login attempts.

4. Extract failed-login timestamps to ~/failed_logins.txt.

StepDoWhyWhat
1tail -n 20 /var/log/auth.logLast 20 lines.20 entries.
2Scan for “Accepted password” or “Accepted publickey”.Successful logins.Find most-recent timestamp.
3Submit timestamp.Validation.First check passes.
4grep “Failed password” /var/log/auth.log | wc -lCount failed-login lines.A number.
5Submit count.Validation.Second check passes.
6grep “Failed password” /var/log/auth.log | awk ‘{print $1, $2, $3}’ > ~/failed_logins.txtExtract first 3 fields (date) per line; save.File created.
7cat ~/failed_logins.txt | headVerify first lines.First few timestamps.
8Submit.Validation.Pass.

Common mistakes: – Used > when meant >> (overwrite vs append). – Case-sensitivity in Failed password (capital F). – Forgot the pipe order.

Reference: man bash (pipelines), man grep, man awk.


Lab 3 — Lab 7.3 — “Processes and Network Checks”

Why as a cyber professional: every SOC analyst, IR investigator, and sysadmin uses ps/top/ss/ip/ping/curl constantly. Knowing what’s running and what’s listening is the OTHER half of “first day on a Linux box.”

What this covers: Topic 4 — processes and network.

Goal (9 parts): ps + top + start a service + ss + curl + kill + ip + ping.

PartDoWhyWhat
Aps then ps auxSnapshot of current shell vs all processes.Many rows for ps aux.
A.1ps aux \| grep python and ps aux \| grep sshFilter by process name.Filtered rows.
Btop for 30 seconds; press q.Live process view.Refreshing display.
Ccd ~/csrp-labs/lesson7 then python3 -m http.server 8080Start an HTTP server on port 8080. Leave running.“Serving HTTP on 0.0.0.0 port 8080 …”
DOpen a SECOND terminal tab. Then ss -tulnList listening TCP+UDP sockets.List including :8080 line.
D.1ss -tulnp (or sudo ss -tulnp for full info)Show PID/process per socket.:8080 linked to python3 PID.
Ecurl http://127.0.0.1:8080 then curl -I http://127.0.0.1:8080First gets the directory listing; second gets just headers.HTML output then HTTP/1.0 200 OK.
Fps aux \| grep “http.server”Find the Python HTTP server PID.Row with PID number.
Gkill <PID> then ss -tuln \| grep 8080Stop the service; verify port released.grep 8080 returns nothing.
Hping -c 4 <gateway-ip> then ping -c 4 8.8.8.8Test local + external reachability.Both should succeed in lab env.
Iip a then ip routeShow your IP and routing table.Interfaces + routes.
JSubmit completion.Lab validates state.Pass.

Common mistakes: – Closed the first terminal before checking with ss in the second. – Used kill -9 immediately instead of kill (use SIGTERM first; SIGKILL only if it doesn’t stop). – Forgot cd ~/csrp-labs/lesson7 before python3 -m http.server.

Reference: man ps, man top, man ss, man ip, man kill, man curl, man ping, Python docs on http.server.


Challenge — “Linux CLI Master”

Why as a cyber professional: real CLI investigations chain commands. The Challenge proves you can follow a multi-step chain across the filesystem, decoding payloads along the way — exactly what an IR or SOC investigation looks like.

Brief: A flag is hidden somewhere on the Meridian Linux box. Follow the clue chain in ~/csrp-labs/lesson7/ctf/. Each clue points to the next step. Combine commands (find, grep, cat, base64 -d). Submit the final ULC{…} flag.

What you know: – Start at ~/csrp-labs/lesson7/ctf/. Read clue1.txt first. – The chain uses find, grep, cat, and base64 -d. – The final payload is Base64-encoded. – Per-instance flag.

Strategy: 1. cat ~/csrp-labs/lesson7/ctf/clue1.txt — first clue tells you the next step. 2. Use find (per clue1’s instruction) to locate clue2.txt somewhere under the ctf folder. 3. cat <path/to/clue2.txt> — second clue tells you to grep a log. 4. grep “FLAGPATH” ~/csrp-labs/lesson7/ctf/logs/challenge.log — reveals FLAGPATH=hidden/encoded.txt. 5. cat ~/csrp-labs/lesson7/ctf/hidden/encoded.txt — Base64 string. 6. Decode: cat ~/csrp-labs/lesson7/ctf/hidden/encoded.txt | base64 -d — reveals the final flag. 7. Submit.

Tiered hints: 1. Read clue1.txt and follow its instruction. Each clue tells you what command to use next. 2. The chain is find → grep → cat → base64 -d. Use one per clue. 3. cat clue1.txt → find . -name “clue2.txt” → cat clue2 → grep FLAGPATH in logs/challenge.log → cat the revealed file → pipe through base64 -d.

Bonus investigation (optional): After getting the flag, do real post-incident SOC work: – wc -l ~/csrp-labs/lesson7/ctf/logs/challenge.log — count log lines. – grep “WARNING” ~/csrp-labs/lesson7/ctf/logs/challenge.log > warning-report.txt — save warnings. – cat warning-report.txt — review.

Reference: man find, man grep, man cat, man base64, man xargs. MITRE T1564.001 (Hidden Files), T1140 (Deobfuscate/Decode Files or Information).


What if you didn’t finish in class

All labs persist. Practice CLI 15 min/day this week — muscle memory is everything. Then take L7 Mastery Check; L8 unlocks.

Quick reference

Navigation

pwd · ls (-la -h) · cd (cd ~ home, cd .. up).

Read/write

cat · less · head -n N · tail -n N (-f follow). touch · nano (Ctrl+O save, Ctrl+X exit) · echo “x” > f · echo “y” >> f. cp · mv · rm (no undo) · mkdir.

Pipes & redirection

| pipe · > overwrite · >> append · < input · 2>/dev/null discard errors.

Search

grep “pat” file (-r recursive, -i case-ins, -v invert, -n line numbers, -l filenames only). find PATH -name “*.ext” (-size, -mtime, -user, -perm, -exec).

Processes

ps · ps aux · ps aux | grep <name> · top (q to quit) · kill <PID> · kill -9 <PID>.

Network

ss -tuln (listening sockets) · ss -tulnp (with PID) · ip a (IPs) · ip route (routes) · ping -c 4 <ip> · curl http://host · curl -I http://host.

Decode

base64 -d (decode standard base64). For other encodings: xxd -r -p (hex), tr ‘A-Za-z’ ‘N-ZA-Mn-za-m’ (rot13).