performance
medium
Apply
history-hygiene
2 points
Question 49. CSCD240-E1-B
Delete the in-memory command history for the current shell.
Work the drill
Answer on paper or in a terminal before revealing the ideal answer.
Ideal answer
history -c
Acceptable alternatives: ["history --clear"]
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.
rm ~/.bash_history
Misconception. Only removes persisted copy; in-memory history persists until shell exits.
Remedy. history -c = memory; rm ~/.bash_history = file. Both may be needed.
clear
Misconception. clear just clears the screen — does NOT erase history.
Remedy. Screen clear ≠ history clear.
Authority mappings
Hover any chip for the mapping justification; click to open the authority record.
DCWF roles:
CE-551 Red Team Specialist
DCWF tasks:
T0232
KU outcomes:
CO-M10-O1