Vidyalelo
Computer Science · Q44

UNIX

Engineering and GATE · Computer Science · question 44

Q44

Which of the following commands is used to display your working directory?

A.
dir
B.
prompt g
C.
pwd
Answer
D.
path
E.
None of the above

Answer: Option C

Solution

Answer: Option C
Solution:
In Unix, the pwd command stands for "print working directory". When you issue this command, it displays the full pathname of the current working directory. This helps users to know which directory they are currently working in within the Unix filesystem.
So, Option C is the command used to display your working directory in Unix.