Bird
0
0

What does the pwd command display when run in a Linux shell?

easy📝 Conceptual Q1 of 15
Linux CLI - Navigating the File System
What does the pwd command display when run in a Linux shell?
AThe current system date and time
BThe list of files in the current directory
CThe username of the logged-in user
DThe full path of the current working directory
Step-by-Step Solution
Solution:
  1. Step 1: Understand the command

    The pwd command stands for 'print working directory'.
  2. Step 2: What it outputs

    It outputs the absolute path of the directory you are currently in.
  3. Final Answer:

    The full path of the current working directory -> Option D
  4. Quick Check:

    Run pwd in any terminal [OK]
Quick Trick: pwd shows your current directory's full path [OK]
Common Mistakes:
MISTAKES
  • Confusing pwd with ls which lists files
  • Thinking pwd shows username or date

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes