Bird
0
0

Which of the following commands will correctly display the current directory path in a Linux shell?

easy📝 Conceptual Q2 of 15
Linux CLI - Navigating the File System
Which of the following commands will correctly display the current directory path in a Linux shell?
Acd
Bwhoami
Cls -l
Dpwd
Step-by-Step Solution
Solution:
  1. Step 1: Identify command purpose

    pwd prints the current directory path. cd changes directory, ls -l lists files, and whoami shows the user.
  2. Step 2: Select the command that prints current directory

    Only pwd outputs the current directory path directly.
  3. Final Answer:

    pwd -> Option D
  4. Quick Check:

    Command to print directory = pwd [OK]
Quick Trick: Use pwd to print your current folder path [OK]
Common Mistakes:
MISTAKES
  • Using cd without arguments
  • Confusing ls with pwd
  • Using whoami for directory

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes