
bash return codes
Flashcard
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

5 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What will the return code likely be? Options: 0, >0, Depends on the contents of the file
Back
0
2.
FLASHCARD QUESTION
Front
What is the exit code likely to be?
Back
0
Answer explanation
Return code refers to the last command executed, which is in this case the echo, not ls.
3.
FLASHCARD QUESTION
Front
I think of pipes & redirects as arguments. According to this, which are treated as arguments?
Back
neither
4.
FLASHCARD QUESTION
Front
What will the exit code likely be?
Back
0
Answer explanation
Again, exit code is generated by the very last command executed. What is it this time?
5.
FLASHCARD QUESTION
Front
What is the return code?
Back
>0
Answer explanation
Again, exit code is generated by the very last command executed. What is it this time?
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?