Skillset can help you prepare! Sign up for your free Skillset account and take the first steps towards your certification.
What is the meaning of the following result? echo $? 1
The command preceding the ‘echo’ command did not function correctly.
The command preceding the ‘echo’ command ran without errors.
The variable $? has been initialized to 1 by a preceding command ($?=1).
The command preceding the ‘echo’ command received one single parameter.
If no error occurs when executing a command, the exit code (which we reference in the shell with the shorthand $?) will have the value of 0: no error. If we run a command that fails, the exit code will have a nonzero value. Here is the description of few error codes. 1: general error 2: misuse of shell builtins (pretty rare) 126: cannot invoke requested command 127: command not found error 128: invalid argument to “exit” 128+n: fatal error signal “n” (for example, kill -9 = 137). 130: script terminated by Ctrl-C
Study thousands of practice questions that organized by skills and ranked by difficulty.
Create a tailored training plan based on the knowledge you already possess.
Know when you’re ready for the high-stakes exam. Have the confidence that you will pass on your first attempt.