ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 334 - SY0-601 discussion

Report
Export

A security operations technician is searching the log named /vax/messages for any events that were associated with a workstation with the IP address 10.1.1.1. Which of the following would provide this information?

A.
cat /var/messages | grep 10.1.1.1
Answers
A.
cat /var/messages | grep 10.1.1.1
B.
grep 10.1.1.1 | cat /var/messages
Answers
B.
grep 10.1.1.1 | cat /var/messages
C.
grep /var/messages | cat 10.1.1.1
Answers
C.
grep /var/messages | cat 10.1.1.1
D.
cat 10.1.1.1 | grep /var/messages
Answers
D.
cat 10.1.1.1 | grep /var/messages
Suggested answer: A

Explanation:

the cat command reads the file and streams its content to standard output. The | symbol connects the output of the left command with the input of the right command. The grep command returns all lines that match the regex. The cut command splits each line into fields based on a delimiter and extracts a specific field.

asked 02/10/2024
CHARLES ADAMA
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first