LPI ESSENTIALS Flashcards

PASS LPI ESSENTIALS THE FIRST TIME

1
Q

Match any one character ENCLOSED within it

A

Brackets

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

Used to SURROUND subexpressions and specify how operators should be applied

A

Parenthesis

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

Matches with ONE OR MORE occurrences of a character

A

+

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

Match SPECIAL characters

A

\

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

Matches with ZERO OR ONE occurrence of a character

A

?

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

uses regular expressions

A

grep

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

locates files and supports pattern matches

A

find

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

basic statistics on text files

A

wc

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

displays the number of lines that match

A

grep -c | –count

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

takes pattern input from the SPECIFIED FILE

A

grep -f | –file=file

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

perform a case insensitive search

A

grep - i | -ignore

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

searches directory and sub directory

A

grep -r | -recursive

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

extended regular expressions

A

-extended-regexp | grep -E

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

ignores case (default is Cap letters first)

A

sort -f | –ignore-case

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

sorts by numeric value

A

sort -n | sort –numeric-sort

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

writes results to file specified

A

sort –output=file | sort o

17
Q

sorts in descending order (default is ascending)

A

sort –reverse

18
Q

writes STANDARD INPUT and STANDART OUTPUT to a specified file

A

<>

19
Q

writes STANDARD OUTPUT and STANDARD ERROR to a file

A

&>