Linux Exam Review Module 6: Logical Operators & Pipes Flashcards
1
Q
&&
A
will execute the second command if the first succeeds
2
Q
//
A
will execute the second command if the first fails
3
Q
/
A
will send the stdout of the first command to the second command
4
Q
=
A
equals
5
Q
!=
A
Does not equal
6
Q
-lt
A
less than (number)
7
Q
gt
A
greater than
8
Q
-eq
A
equals (number)
9
Q
< >
A
less than & greater than (string)
10
Q
Sort
A
reorders the output of a file by number, date, text, etc
11
Q
cut
A
text delimiter the cuts strings with a specific character and prints the delimited text based on selected fields
12
Q
WC
A
displays the number of lines, words, bytes and character in a file