Lpi Linux Essentials 010 160 · Free Practice Question Easy

Question 8

Which command shows all of the directories that the shell searches for programs?
  • A less $PWD
  • B more $ALL_PATH
  • C get $PATH
  • D echo $PATH
Reveal correct answer

Correct answer: D

Explanation

OBJ-2.1: The echo $PATH command shows all the directories used by the shell during a search for a program. By default, anything listed in the $PATH will be looked at by the shell before returning an error that states it cannot find a file's location.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need