Multiple choice technology operating systems

if [ -d $AXA_BA_ENVPATH/$1 ] -d stands for

  1. none of the above

  2. Checks for the existence of a directoy

  3. Checks for the existence of a file

  4. Checks for the existence of a file/directoy

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

In shell conditional expressions, -d checks if a file exists and is a directory. It returns true only if the path exists and is specifically a directory, not a regular file.