Which of the following commands print the current working directory when using a Bash shell? (Choose two.)
A. echo “${PWD}”
B. echo “${WD}”
C. printwd
D. pwd
E. echo “${pwd}”
Which of the following commands print the current working directory when using a Bash shell? (Choose two.)
A. echo “${PWD}”
B. echo “${WD}”
C. printwd
D. pwd
E. echo “${pwd}”
The correct brackets should be echo “$(PWD)” but other then that, Answer are correct. AD
$() is to put the output of a command into the variable
$PWD also works