performance
medium
Apply
process-listing
2 points
Question 17. CSCD240-E1-A
Display PID and full process info for all processes containing "python".
Work the drill
Answer on paper or in a terminal before revealing the ideal answer.
Ideal answer
ps -ef | grep python
Acceptable alternatives: ["ps aux | grep python", "pgrep -a python", "pgrep -l python"]
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.
grep python
Misconception. Missing ps — grep alone has no process info.
Remedy. Teach pipe composition: ps produces the info, grep filters.
ps python
Misconception. ps does not take program name directly.
Remedy. Always pipe ps to grep (or use pgrep).
Authority mappings
Hover any chip for the mapping justification; click to open the authority record.
KU topics:
CD-OSC-T3
Course-artifact links
Lectures
- CSCD240-S26-L08. Pipes, filters, grep, sort, uniq, wc, tar
Lab questions
- CSCD240-S26-LAB6: Run ps, ps -ef, ps aux. Explain the difference.