nerdexam
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)
  • A
    93% (26)
  • D
    4% (1)
  • E
    4% (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.

Full 101-500 Practice