010-160 Exam QuestionsBrowse all questions from this exam

010-160 Exam - Question 69


What is the return value of a shell script after successful execution?

Show Answer
Correct Answer: B

The return value of a shell script after successful execution is 0. This is a standard convention in UNIX and UNIX-like operating systems where a successful command returns an exit status of 0, indicating that the script has completed without errors. Non-zero values indicate different types of errors or unsuccessful execution.

Discussion

3 comments
Sign in to comment
burro
Aug 29, 2021

PUTA DE BURRROOOOOOS

beazzlebubOption: B
Jul 26, 2021

B is the correct answer

ahenriquez02Option: B
Dec 26, 2022

The correct answer is B Every command returns an exit status (sometimes referred to as a return status or exit code). A successful command returns a 0, while an unsuccessful one returns a non-zero value that usually can be interpreted as an error code. Well-behaved UNIX commands, programs, and utilities return a 0 exit code upon successful completion, though there are some exceptions.