»
Linux
»
Examen sur Linux
»
Examen 201 : Advanced Administration
»
Section 3
»
Question 3/20
3.You are creating a script with demands that the previous command execute correctly. How would you correctly test the exit status of the previous command in BASH?
if [ "$#" -eq "0" ]; then...
if [ "$?" -eq "0" ]; then...
if [ '$#' == 0 ]; then...
if [ '$?' == '0']; then...
if [ $@ -eq 0 ]; then...
Explanation
« Question 2
Question 4 »