Which of the following commands print the current working directory when using a Bash shell? (Choose two.)
Which of the following commands print the current working directory when using a Bash shell? (Choose two.)
To print the current working directory in a Bash shell, you can use the command 'pwd', which stands for 'print working directory'. Another way is to use 'echo' with the environment variable '${PWD}', which holds the current working directory path. Therefore, both 'echo "${PWD}"' and 'pwd' are correct commands to achieve this.
only pwd and echo $PWD would work. but pwd is the only answer provided
echo ${PWD} works as well