21 Mar 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?
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.