1.

Which command is used for printing the current working directory?(a) HOME(b) cd(c) pwd(d) dirThe question was posed to me in class test.I'd like to ask this question from File Handling Commands: pwd, cd topic in portion The File System of Unix

Answer» RIGHT choice is (c) pwd

For explanation I would SAY: 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.


Discussion

No Comment Found

Related InterviewSolutions