Bird
0
0

What does the history command do in a Linux terminal?

easy📝 Conceptual Q11 of 15
Linux CLI - Environment and Configuration
What does the history command do in a Linux terminal?
ADeletes all saved commands
BLists all previously executed commands
CShows current running processes
DClears the terminal screen
Step-by-Step Solution
Solution:
  1. Step 1: Understand the purpose of history

    The history command shows a list of commands you typed before in the terminal.
  2. Step 2: Compare options with command behavior

    Only Lists all previously executed commands correctly describes this behavior; others describe different commands.
  3. Final Answer:

    Lists all previously executed commands -> Option B
  4. Quick Check:

    history lists past commands [OK]
Quick Trick: Remember: history shows past commands typed [OK]
Common Mistakes:
  • Confusing history with clearing screen
  • Thinking history deletes commands
  • Mixing history with process listing

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes