Kavya TKnowledge Contributor
Which of the following commands is used to display your working directory?
Which of the following commands is used to display your working directory?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Questions | Answers | Discussions | Knowledge sharing | Communities & more.
pwd command
Use the pwd command to write to standard output the full path name of your current directory (from the /(root) directory). All directories are separated by a slash (/).
The command pwd, which stands for “print working directory,” is used to display the path of the current directory you are in. When you enter pwd in a command-line interface, it outputs the full directory path, showing your exact location in the file system hierarchy. This command helps you keep track of where you are, especially when navigating through complex directory structures.