System Logging Flashcards

1
Q

grep [options] ‘search criteria’ file.txt

A

-i = ignore cases
-v = invert search
-c = count match result
-o = only characters that match
-r = read files recursively
-E = Use extended regular expression this is same as egrep command

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

find / -name *.txt | grep apache

A

what does this command do?

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