How do you find out the current directory you’re in?
- $dir
-
pwd
-
currdir
-
none
Reveal answer
Fill a bubble to check yourself
B
Correct answer
Explanation
pwd (print working directory) is the standard Unix command that displays the full path of the current working directory. Options A and C are not valid Unix commands. The pwd command works in all Unix-like systems and is essential for navigation.
AI explanation
The pwd command stands for 'print working directory' and outputs the absolute path of the directory you're currently in — it's one of the most basic and universal Unix/Linux shell commands. There's no built-in $dir or currdir command in standard shells, so pwd is the standard way to answer this.