Bird
0
0

Which Linux command shows the current directory you are in?

easy📝 Conceptual Q11 of 15
Linux CLI - Linux Basics and Terminal
Which Linux command shows the current directory you are in?
A<code>pwd</code>
B<code>ls</code>
C<code>cd</code>
D<code>mkdir</code>
Step-by-Step Solution
Solution:
  1. Step 1: Understand the purpose of pwd

    The pwd command stands for "print working directory" and shows the current folder path.
  2. Step 2: Compare with other commands

    ls lists files, cd changes directory, and mkdir creates a folder, so they don't show the current directory.
  3. Final Answer:

    pwd -> Option A
  4. Quick Check:

    Current directory command = pwd [OK]
Quick Trick: Remember: pwd = print working directory [OK]
Common Mistakes:
MISTAKES
  • Confusing ls with pwd
  • Using cd to show directory
  • Thinking mkdir shows current folder

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes