multiple_choice
easy
Apply
find
2 points
Question 17. CSCD240-E1-C
Which command searches the filesystem for a file by name, suppressing permission-denied errors?
Work the drill
Answer on paper or in a terminal before revealing the ideal answer.
Ideal answer
A: find / -name FILE 2>/dev/null
Misconception bank
Each row below is a plausible wrong answer, the thinking that produces it, and the remedy that corrects the misconception. These are the foundation of the multiple-choice framing and the targeted feedback a student receives after answering.
B: locate FILE
Misconception. Requires updatedb; may be stale or absent.
Remedy. find is portable.
C: which FILE
Misconception. which only searches PATH for executables.
Remedy. Wrong tool for file discovery.
D: grep -r FILE /
Misconception. grep searches file contents, not names.
Remedy. Tool-choice matrix.
Authority mappings
Hover any chip for the mapping justification; click to open the authority record.
DCWF roles:
CS-511 Cyber Defense Analyst
DCWF tasks:
T0447
KU outcomes:
CO-M9-O1
Course-artifact links
Lectures
- CSCD240-S26-L03. Files, directories, file command, wildcards, viewing
Lab questions
- CSCD240-S26-LAB5: grep -i, grep -n, grep -v, grep -c, grep -r on a log file.