If Then Comparisons Flashcards

1
Q

-eq

A

equal to for numbers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

==

A

equal to for letters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

-ne

A

not equal to

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

!==

A

not equal to for letters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

-lt

A

less than

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

-le

A

less than or equal to

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

-gt

A

greater than

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

-ge

A

greater then or equal to

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

The if statement as the following syntax:

A
if commands; then
    commands
[elif commands; then 
    commands...]
[else 
    commands]
fi
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is $?:

A

Exit status 0-255

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Exit status 0

A

0 indicates success

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Exit status 1

A

Any exit status other than 0 means failure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly