EX200 Create simple shell scripts • Set 1
EX200 Create simple shell scripts Practice Test 1 — 15 questions with explanations. Free, no signup.
A system administrator needs to create a shell script that checks if the user 'jdoe' exists in the system and, if not, creates the user with a home directory. The script should also verify that the creation was successful. Which of the following script snippets correctly implements this logic?
Choose an answer to begin — your selection is scored in the full session.
15 questions · instant feedback and full explanations after every question.