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 5
In Progress

Linux CLI Fundamentals Question Bank

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

CSRP  —  Cyber Security Responder & Practitioner

Lesson 7: Linux CLI Fundamentals

Question Bank

Cyber School  ·  BDO Ziv Haft

QUESTION BANK (ISC2 CC-style) — v2.1

Lesson 7 — Linux CLI Fundamentals

A bank of 28 multiple-choice questions in ISC2 Certified in Cybersecurity (CC) exam style. 22 carried over from v2; 6 new on Lab 7.3 topics (ps/top/ss/ip/ping/curl/kill). Each has one best answer, an explanation, a source reference, and tags. The bank feeds:

  • The Lesson 7 Mastery Check (10 sampled — see §12 default sample at bottom)
  • The Module 1 Test (sampled across L1-L8 banks)
  • The CSRP Final Test (sampled across all 40 banks)

Header

FieldValue
Lesson7 — Linux CLI Fundamentals (v2.1)
Total questions28
CC domains coveredDomain 5 (Security Operations) — primary; Domain 3 (Access Controls) + Domain 1 (Security Principles) — supporting
Difficulty mix10 Recall · 12 Application · 6 Analysis
Bloom mix10 Remember · 9 Understand · 6 Apply · 3 Analyze

Tag glossary

  • CC-Domain: 1 (Security Principles), 2 (BC/DR/Incident Response), 3 (Access Controls), 4 (Network Security), 5 (Security Operations)
  • Difficulty: Recall · Application · Analysis
  • Bloom: Remember · Understand · Apply · Analyze · Evaluate · Create

Q1

Stem: Which command prints the full absolute path of the directory you are currently in?

A. cd B. pwd C. ls -a D. whoami

Correct: B Explanation: pwd — print working directory — outputs the absolute path of the current directory. cd changes directory; ls -a lists files including hidden ones; whoami prints the current username. Source: Textbook §2.2 Tags: CC-Domain 5 · Recall · Remember


Q2

Stem: Which command lists every file in the current directory, including hidden files, in long format (permissions, owner, size, date)?

A. ls B. ls -l C. ls -la D. dir

Correct: C Explanation: -l gives the long format (permissions, owner, group, size, date); -a adds hidden (dotfile) entries. Combined as -la, this is the SOC analyst’s everyday ls invocation. Source: Textbook §2.2 Tags: CC-Domain 5 · Recall · Remember


Q3

Stem: A user is currently in /home/alice/docs. They type cd ../reports. Which directory are they now in?

A. /home/alice/docs/reports B. /home/alice/reports C. /reports D. /home/reports

Correct: B Explanation: .. means parent directory, so from /home/alice/docs the path resolves to /home/alice/reports. Understanding relative paths (., ..) is foundational to navigation. Source: Textbook §2.3 Tags: CC-Domain 5 · Application · Apply


Q4

Stem: What does cd ~ do?

A. Changes to the root directory /. B. Changes to the user’s home directory. C. Changes to the previous directory. D. Changes to a directory literally named ~.

Correct: B Explanation: ~ (tilde) is the shell shorthand for the current user’s home directory (e.g., /home/alice). cd with no argument does the same thing. cd / goes to root; cd – goes to the previous directory. Source: Textbook §2.3 Tags: CC-Domain 5 · Recall · Remember


Q5

Stem: Which operator appends the output of a command to the end of an existing file without erasing it?

A. > B. >> C. < D. |

Correct: B Explanation: >> appends; > overwrites (data loss!); < redirects input; | is a pipe between commands. Using > when you meant >> is a classic cause of lost log files. Source: Textbook §3.3 Tags: CC-Domain 5 · Recall · Remember


Q6

Stem: Which statement best describes a pipe (|) in a Linux shell?

A. It writes the command’s output to a file. B. It connects the standard output of one command to the standard input of the next. C. It runs two commands in parallel on different CPUs. D. It comments out the rest of the line.

Correct: B Explanation: A pipe chains commands: cmd1 | cmd2 feeds the stdout of cmd1 as the stdin of cmd2. This is the single most important concept in shell composition and the foundation of the Unix philosophy. Source: Textbook §3.3 Tags: CC-Domain 5 · Recall · Understand


Q7

Stem: A SOC analyst wants to see the last 50 lines of /var/log/auth.log. Which command?

A. head -n 50 /var/log/auth.log B. tail -n 50 /var/log/auth.log C. cat /var/log/auth.log D. less /var/log/auth.log

Correct: B Explanation: tail -n 50 shows the LAST 50 lines (newest entries) — what you want for recent activity. head -n 50 shows the FIRST 50. cat dumps everything; less opens an interactive pager. Source: Textbook §3.1 Tags: CC-Domain 5 · Application · Apply


Q8

Stem: Which command keeps the file open and prints new lines as they are appended — useful for watching a log in real time?

A. tail -f /var/log/auth.log B. cat /var/log/auth.log C. head -f /var/log/auth.log D. grep -f /var/log/auth.log

Correct: A Explanation: tail -f is follow mode — it keeps reading the file and printing new lines as they arrive. Press Ctrl-C to stop. This is the live-log monitor a SOC analyst leaves running in a side window during an investigation. Source: Textbook §3.1 Tags: CC-Domain 5 · Application · Apply


Q9

Stem: Which command recursively searches every file under /etc for lines containing the word “password”?

A. grep password /etc B. grep -r “password” /etc C. find /etc -name password D. cat /etc/password

Correct: B Explanation: grep -r (recursive) descends into subdirectories and searches inside every file. Option A would fail (or just match a file literally named “password”). Option C searches by filename, not content. Option D would try to print a file that does not exist (the file is /etc/passwd, no “or”). Source: Textbook §3.4 Tags: CC-Domain 5 · Application · Apply


Q10

Stem: Which command lists every file under /var/log whose name ends in .log?

A. grep -r “.log” /var/log B. find /var/log -name “*.log” C. ls -R /var/log D. cat /var/log/*.log

Correct: B Explanation: find searches by metadata such as name; -name “*.log” matches filenames ending in .log (the * is a glob wildcard). grep searches inside files, not by filename. ls -R recursively lists but doesn’t filter by extension. Source: Textbook §3.5 Tags: CC-Domain 5 · Application · Apply


Q11

Stem: A defender pipes cat error.log | wc -l. What does this report?

A. The size of the file in bytes. B. The number of lines in error.log. C. The number of words in error.log. D. The number of files in the directory.

Correct: B Explanation: wc -l counts lines (-l = lines). It’s the most common way to ask “how many events?” wc -w counts words; wc -c counts bytes. Source: Textbook §3.3, §3.4 Tags: CC-Domain 5 · Application · Apply


Q12

Stem: What does the suffix 2>/dev/null do at the end of a command?

A. Sends standard output to the file null. B. Discards the standard ERROR stream so it does not clutter the terminal. C. Pauses the command for 2 seconds. D. Limits output to 2 lines.

Correct: B Explanation: 2> redirects file descriptor 2 (stderr). /dev/null is a special file that throws away everything written to it. So 2>/dev/null silences error messages — vital when running find / and you don’t want “Permission denied” noise drowning the result. Source: Textbook §3.3 Tags: CC-Domain 5 · Application · Apply


Q13

Stem: Under the Filesystem Hierarchy Standard (FHS), what is the root of the Linux filesystem?

A. /root B. / C. C:\ D. /home

Correct: B Explanation: / is the root of the entire filesystem; everything else lives under it. /root is the home directory of the root user (an entirely different thing). Linux has no drive letters — every disk and mount appears as a directory under /. Source: Textbook §2.1 Tags: CC-Domain 5 · Recall · Remember


Q14

Stem: A SOC analyst is asked, “Where do system log files live by default on a Linux server?” Which path is correct?

A. /etc/log B. /var/log C. /usr/log D. /log

Correct: B Explanation: Per the FHS, system logs live under /var/log — for example /var/log/auth.log, /var/log/syslog, /var/log/messages. /etc is for configuration; /usr is for installed programs. Source: Textbook §2.1 Tags: CC-Domain 5 · Recall · Remember


Q15

Stem: Why is the command rm -rf / famously dangerous?

A. It opens a remote network port. B. It recursively (-r) and forcefully (-f) deletes everything starting from the filesystem root — the entire OS. C. It encrypts every file on disk. D. It elevates the user to root.

Correct: B Explanation: rm has no undo and no Recycle Bin. -r recurses into directories; -f suppresses prompts; / is the root. Together they delete the operating system from the running machine. Defenders must double-check any rm -rf path, especially when it’s built from a variable like $DIR/. Source: Textbook §3.2 Tags: CC-Domain 5, CC-Domain 1 · Analysis · Analyze


Q16

Stem: A defender wants to know which files under /opt/app contain the string api_key — only the filenames, not the matching lines. Which command?

A. grep “api_key” /opt/app/* B. grep -l -r “api_key” /opt/app C. find /opt/app -name “api_key” D. ls -la /opt/app | grep api_key

Correct: B Explanation: grep -l prints only the filenames that contain a match (l = “list files”). -r recurses. Option A would print matching lines, not just filenames, and wouldn’t recurse. Option C searches by filename, not content. Source: Textbook §3.4 Tags: CC-Domain 5 · Application · Apply


Q17

Stem: In Linux, a file whose name begins with a dot (e.g., .bash_history, .ssh) is called a:

A. System file. B. Hidden file / dotfile — does not appear in a default ls listing. C. Encrypted file. D. Locked file that cannot be opened.

Correct: B Explanation: Dotfiles are simply files whose names start with .; the shell convention is that ls hides them by default. ls -a reveals them. Attackers exploit this convention to drop payloads in plain sight — searching for unexpected dotfiles is a useful defensive habit. Source: Textbook §3.2; Lab 7.2 Tags: CC-Domain 5 · Recall · Remember


Q18

Stem: Which is the most beginner-friendly terminal text editor available on most Linux systems?

A. vim B. emacs C. nano D. gedit

Correct: C Explanation: nano shows the shortcuts at the bottom of the screen (^O save, ^X exit) — explicit and discoverable. vim and emacs are powerful but require learning their modes. gedit is a GUI editor, not a terminal one. Source: Textbook §3.2 Tags: CC-Domain 5 · Recall · Remember


Q19

Stem: Which statement best captures the Unix philosophy?

A. Build one large monolithic program that does everything. B. Use proprietary binary formats for speed. C. Write programs that do one thing well, output text, and connect them with pipes. D. Replace the command line with a graphical interface whenever possible.

Correct: C Explanation: Small focused tools, text streams, composition via pipes — that’s the Unix philosophy. It’s why a one-liner like grep … | awk … | sort | uniq -c is so powerful: each tool does one thing well, and composition produces complex behaviour. Source: Textbook §3.3, §5.2 Tags: CC-Domain 5 · Recall · Understand


Q20

Stem: A defender needs to count how many “Failed password” events appear in /var/log/auth.log. Which one-liner produces the count?

A. grep “Failed password” /var/log/auth.log B. grep “Failed password” /var/log/auth.log | wc -l C. cat /var/log/auth.log | head D. find / -name “Failed password”

Correct: B Explanation: grep filters to matching lines; piping into wc -l counts them. This is the canonical “how many failed SSH logins did we see overnight?” one-liner — a daily SOC question. Source: Textbook §3.4 Tags: CC-Domain 5 · Application · Apply


Q21

Stem: On a Linux system you type cat REPORT.TXT but get No such file or directory. The folder clearly contains Report.txt. What is the most likely cause?

A. The file is encrypted. B. Linux filenames are case-sensitive — REPORT.TXT and Report.txt are different files. C. cat cannot open .txt files. D. The terminal needs to be rebooted.

Correct: B Explanation: Linux treats filenames as case-sensitive: Report.txt, report.txt, and REPORT.TXT are three different filenames. This catches everyone coming from Windows or macOS (case-preserving but usually case-insensitive). Mind the case. Source: Textbook §2.4 Tags: CC-Domain 5 · Application · Apply


Q22

Stem: A defender wants to see every shell command an attacker who logged in as alice ran during their session. Which file is the first place to look?

A. /home/alice/.bash_history B. /var/log/auth.log C. /etc/passwd D. /tmp/history.log

Correct: A Explanation: .bash_history is a per-user dotfile in their home directory that records the commands typed in bash sessions. It is the simplest audit trail of “what did this account do?” — though sophisticated attackers will try to truncate or delete it (which itself becomes a signal). Source: Textbook §3.2; Lab 7.2 Tags: CC-Domain 5, CC-Domain 1 · Analysis · Apply


Q23

Stem: The L7 Challenge “Linux CLI Master” tests primarily:

A. Encryption skills B. Multi-step CLI composition: chain find → grep → cat → base64 -d across a series of clue files to recover the final flag. C. Network packet analysis D. Database queries

Correct: B Explanation: The Challenge is a Pattern-4 “follow the clues” investigation — each clue’s payload tells you which command to run next, walking from a starter file through find, grep, and cat to a final Base64-encoded ULC{…} flag. Source: Textbook §5.1 (Pattern 4), §6 Challenge brief Tags: CC-Domain 5 · Application · Apply


Q24

Stem: Which command shows a snapshot of all running processes on a Linux system?

A. top B. ps C. ps aux D. htop

Correct: C Explanation: ps aux shows all processes for all users with full detail in a one-shot snapshot. ps alone shows only the current shell’s processes. top and htop are LIVE/refreshing views, not snapshots. Source: Textbook §4.1 Tags: CC-Domain 5 · Recall · Remember


Q25

Stem: To stop a process named myapp running with PID 1234 gracefully (giving it a chance to clean up open files and transactions):

A. kill 1234 (SIGTERM) — gives the process a chance to clean up B. kill -9 1234 (SIGKILL) immediately C. rm 1234 D. del myapp

Correct: A Explanation: The default kill signal is SIGTERM (15) — the process receives it, runs its shutdown handler, flushes buffers, releases locks, then exits. kill -9 sends SIGKILL, which cannot be caught — use it only if SIGTERM doesn’t work, because it can leave files locked or transactions incomplete. Source: Textbook §4.4 Tags: CC-Domain 5 · Application · Apply


Q26

Stem: Which command shows all listening TCP and UDP sockets on a Linux host?

A. ifconfig B. ss -tuln — modern replacement for netstat -tuln C. lsof D. top

Correct: B Explanation: ss -tuln — -t TCP, -u UDP, -l listening only, -n numeric (skip DNS). Modern distros ship ss from the iproute2 project; netstat is deprecated. ifconfig shows interfaces; top shows processes; lsof lists open files generally. Source: Textbook §4.2 Tags: CC-Domain 5 · Recall · Remember


Q27

Stem: A SOC analyst sees an unexpected process listening on TCP port 4444. To identify the PID and owning process:

A. ifconfig B. ss -tulnp (as root) → shows the socket plus the owning process name and PID; then ps -p <PID> for the full command line. C. cat /etc/services D. ip route

Correct: B Explanation: ss -tulnp adds the -p flag to show the process/PID owning each socket (requires root for the full process name). Once you have the PID, ps -p <PID> gives the full command line, file path, and arguments — enough to decide whether the process is legitimate. Source: Textbook §4.2, §5.1 (Pattern 2) Tags: CC-Domain 5 · Analysis · Analyze


Q28

Stem: Which command starts a quick one-liner HTTP server in the current directory on port 8080, useful for testing network connectivity?

A. nginx -p 8080 B. python3 -m http.server 8080 C. httpd -p 8080 D. service start http 8080

Correct: B Explanation: Python’s built-in http.server module is the universal SOC-analyst trick to verify network paths — “can host A reach host B on TCP/8080?” — without installing anything. It serves the current directory until you press Ctrl-C. Source: Textbook §4.3 Tags: CC-Domain 5 · Application · Apply


Default sampling for the Lesson 7 Mastery Check (10 of 28)

#Question IDType
1Q1Recall (pwd)
2Q2Recall (ls -la)
3Q5Recall (>> append)
4Q7Application (tail)
5Q9Application (grep -r)
6Q14Recall (/var/log)
7Q15Analysis (rm -rf /)
8Q19Recall (Unix philosophy)
9Q24Recall (ps aux snapshot)
10Q26Recall (ss -tuln)

Alternate samples for re-attempts can pull from Q3, Q4, Q6, Q8, Q10–Q13, Q16–Q18, Q20–Q23, Q25, Q27, Q28.


Module 1 Test contribution

Lesson 7 contributes ~6 questions to the Module 1 Test (out of ~50 across L1-L8). Recommended sample: Q3, Q15, Q23, Q24, Q26, Q27.

Final Test contribution

Lesson 7 contributes ~3 questions to the CSRP Final Test (out of ~100). Recommended sample: Q23, Q26, Q27.