Bird
0
0

You want to check your current directory, list all files including hidden ones, and then move to the parent directory. Which command sequence is correct?

hard📝 Application Q9 of 15
Linux CLI - Linux Basics and Terminal
You want to check your current directory, list all files including hidden ones, and then move to the parent directory. Which command sequence is correct?
Apwd cd .. ls
Bpwd ls -a cd ..
Ccd .. ls -a pwd
Dls pwd cd ..
Step-by-Step Solution
Solution:
  1. Step 1: Check current directory

    pwd prints the current directory path.
  2. Step 2: List all files including hidden

    ls -a lists all files, including those starting with dot (hidden).
  3. Step 3: Move to parent directory

    cd .. moves up one directory level.
  4. Final Answer:

    pwd; ls -a; cd .. -> Option B
  5. Quick Check:

    Correct order: pwd, ls -a, then cd .. [OK]
Quick Trick: Use 'ls -a' to see hidden files [OK]
Common Mistakes:
MISTAKES
  • Wrong command order
  • Missing -a for hidden files
  • Using cd before pwd

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes