Practice Test Question- Log Analysis

Practice Test Question- Log Analysis

Practice Test Question- Log Analysis

Preparing for your next security certification exam? After trying your hand at this practice test question, join the FREE CertMike Study Group for the CISSP, Security+, CySA+, PenTest+, CISM+ or SSCP certification to receive new questions each week. You’ll also receive free access to my customized study strategies.

Which one of the following commands, when used in its default configuration, will display the last ten lines of a specified log file?

A. Head
B. Grep
C. Tail
D. Cat

Correct Answer: C

The head command is used to display the first lines of a file, not the last ten. Which makes it an incorrect answer. The tail command is used to display the last lines of a file. By default, it displays ten lines, although this value is adjustable, so tail is our correct answer here. The grep command is used to search a file and the cat command is used to display an entire file, which makes them both incorrect answers.

Get a copy of my official CertMike Practice Test books for the Security+ exam, CISSP exam, SSCP exam, or CySA+ exam and practice with hundreds of questions designed just like the real test!

No Comments

Post A Comment