Multiple choice

Which of the following shortcuts is used in shell programming to obtain the value of the PWD variable which includes the current working directory?

  1. ~+

  2. ~-

  3. ~Expand

  4. ~USER

  5. =+

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

This is the shortcut that is used in shell programming to obtain the value of the PWD variable which includes the current working directory. It gives the same output as $(PWD).