exam questions

Exam 101-500 All Questions

View all questions & answers for the 101-500 exam

Exam 101-500 topic 1 question 60 discussion

Actual exam question from LPI's 101-500
Question #: 60
Topic #: 1
[All 101-500 Questions]

Given a log file loga.log with timestamps of the format DD/MM/YYYY:hh:mm:ss, which command filters out all log entries in the time period between 8:00 am and 8:59 am?

  • A. grep -E ':08:[09]+:[09]+' loga.log
  • B. grep -E ':08:[00]+' loga.log
  • C. grep -E loga.log ':08:[0-9]+:[0-9]+'
  • D. grep loga.log ':08:[0-9]:[0-9]'
  • E. grep -E ':08:[0-9]+:[0-9]+' loga.log
Show Suggested Answer Hide Answer
Suggested Answer: E 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Amycert
11 months, 2 weeks ago
Selected Answer: E
E is correct, tested
upvoted 4 times
Reseko
4 months, 2 weeks ago
Exactly, tested by me, and the only one that returns correct values is option E
upvoted 2 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago