User jack, whose account is configured to use the korn shell, logs in and examines the value of his PATH environment variable:
What will happen, and why?
A. He will get a "file not found" error, because the current directory is not in his seaech path.
B. He will get a "file not found" error, because his home directory is not in his search path.
C. The useradd script will execute, because jack is in the same directory that the script is located in.
D. The command /user/sbin/useradd will execute, because it is the last match in the search path.
E. The command /user/sbin/useradd will execute, because it is the first match in the search path.
Search paths are read left to right 1st match gets run. IT should be E
Well D is sort of true, except that /sbin is the last match in the path, but since /sbin is a link to /usr/sbin – I guess it is OK to go with answer D.