What will happen, and why?

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.

Download Printable PDF. VALID exam to help you PASS.

One thought on “What will happen, and why?

  1. 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.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.