QuestionQ5

VerifiedGNU and Unix Commands

Which of these commands displays the current working directory in a Bash shell?

Choose two
Explanation

PWD is the Bash variable containing the current working directory, so expanding it with echo displays that directory. The pwd builtin prints the absolute pathname of the current working directory.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!