EX200 Create simple shell scripts • 15 Questions
15 EX200 Create simple shell scripts practice questions with answers and 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?