LPI
101-500 · Question #414
Which of the following commands print the current working directory when using a Bash shell? (Choose two.)
The correct answer is A. echo "${PWD}" C. pwd. You've hit your Sonnet limit · resets Jun 8, 9am (UTC)
GNU and Unix Commands
Question
Which of the following commands print the current working directory when using a Bash shell? (Choose two.)
Options
- Aecho "${PWD}"
- Becho "${WD}"
- Cpwd
- Dprintwd
- Eecho "${pwd}"
How the community answered
(28 responses)- A93% (26)
- D4% (1)
- E4% (1)
Explanation
You've hit your Sonnet limit · resets Jun 8, 9am (UTC)
Topics
#pwd command#bash variables#PWD environment variable#shell basics
Community Discussion
No community discussion yet for this question.