nerdexam
LPI

101-400 · 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. See the full explanation below for the reasoning.

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

(39 responses)
  • A
    72% (28)
  • B
    5% (2)
  • D
    8% (3)
  • E
    15% (6)

Community Discussion

No community discussion yet for this question.

Full 101-400 Practice