Oracle
1Z0-821 · Question #6
1Z0-821 Question #6: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-821 to reveal the answer and full explanation for question #6. The question stem and answer options stay visible for context.
Question
User jack, whose account is configured to use the korn shell, logs in and examines the value of his PATH environment variable: jack@solaris: echo $PATH /usr/gnu/bin:/usr/bin:/usr/sbin:/sbin There is a shell script in jack's home directory called useradd: -r-xr-xr-x 2 jack other 1239 2012-01-05 11:42 useradd While in his home directory, jack attempts to run the script: jack@solaris: useradd What will happen, and why?
Options
- AHe will get a "file not found" error, because the current directory is not in his seaech path.
- BHe will get a "file not found" error, because his home directory is not in his search path.
- CThe useradd script will execute, because jack is in the same directory that the script is located in.
- DThe command /user/sbin/useradd will execute, because it is the last match in the search path.
- EThe command /user/sbin/useradd will execute, because it is the first match in the search path.
Unlock 1Z0-821 to see the answer
You've previewed enough free 1Z0-821 questions. Unlock 1Z0-821 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.