bash return codes

bash return codes

Assessment

Flashcard

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

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

Media Image

Back

0

2.

FLASHCARD QUESTION

Front

What is the exit code likely to be?

Media Image

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?

Media Image

Back

neither

4.

FLASHCARD QUESTION

Front

What will the exit code likely be?

Media Image

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?

Media Image

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?