Bird
0
0

What will be the output of the command sequence:

medium📝 Command Output Q4 of 15
Linux CLI - Linux Basics and Terminal
What will be the output of the command sequence:
cd /tmp
pwd
A/tmp
BError: directory not found
C/root
D/home/username
Step-by-Step Solution
Solution:
  1. Step 1: Understand cd /tmp

    This command changes the current directory to /tmp.
  2. Step 2: Understand pwd

    This command prints the current directory path, which after the change is /tmp.
  3. Final Answer:

    /tmp -> Option A
  4. Quick Check:

    pwd shows current folder = /tmp [OK]
Quick Trick: After cd, pwd shows new folder [OK]
Common Mistakes:
  • Expecting home directory output
  • Confusing pwd with ls
  • Thinking /tmp might not exist

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes