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?
Select one:
Red Hat often tests the misconception that grepping /etc/passwd is sufficient for user existence che...