Linux Exam Review Module 6: Logical Operators & Pipes Flashcards

1
Q

&&

A

will execute the second command if the first succeeds

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

//

A

will execute the second command if the first fails

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

/

A

will send the stdout of the first command to the second command

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

=

A

equals

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

!=

A

Does not equal

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

-lt

A

less than (number)

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

-eq

A

equals (number)

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

< >

A

less than & greater than (string)

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

Sort

A

reorders the output of a file by number, date, text, etc

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

cut

A

text delimiter the cuts strings with a specific character and prints the delimited text based on selected fields

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

WC

A

displays the number of lines, words, bytes and character in a file

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