Which command is used for printing the current working directory?

Which command is used for printing the current working directory?
A. HOME
B. cd
C. pwd
D. dir
 
Answer: c
Explanation: pwd command is used for checking our current directory. Current directory is the directory in which we are currently working. pwd displays the absolute pathname i.e. with respect to the root directory.
Code:
$ pwd
/home/user06/Abdullah
 

Tìm kiếm

Back
Top