bash return codes

Flashcard
•
Computers
•
9th - 12th Grade
•
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?
Similar Resources on Wayground
9 questions
AP CSP List Review

Flashcard
•
9th - 12th Grade
9 questions
Java For Loops

Flashcard
•
9th - 12th Grade
9 questions
PYTHON -- Lists (short)

Flashcard
•
9th - 12th Grade
10 questions
Irregular verbs et al. LI

Flashcard
•
9th - 12th Grade
3 questions
Python Lists

Flashcard
•
9th - 12th Grade
5 questions
Java - Writing Methods

Flashcard
•
9th - 12th Grade
5 questions
Java - Writing Methods

Flashcard
•
9th - 12th Grade
7 questions
Java Basics #2

Flashcard
•
10th - 12th Grade
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
10 questions
Afterschool Activities & Sports

Quiz
•
6th - 8th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
15 questions
Cool Tool:Chromebook

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
20 questions
Bullying

Quiz
•
7th Grade
18 questions
7SS - 30a - Budgeting

Quiz
•
6th - 8th Grade