ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 50 - XK0-005 discussion

Report
Export

A systems administrator is checking the system logs. The administrator wants to look at the last 20 lines of a log. Which of the following will execute the command?

A.
tail -v 20
Answers
A.
tail -v 20
B.
tail -n 20
Answers
B.
tail -n 20
C.
tail -c 20
Answers
C.
tail -c 20
D.
tail -l 20
Answers
D.
tail -l 20
Suggested answer: B

Explanation:

The command tail -n 20 will display the last 20 lines of a file. The -n option specifies the number of lines to show. This is the correct command to execute the task. The other options are incorrect because they either use the wrong options (-v, -c, or -l) or have the wrong arguments (20 instead of 20 filename). Reference: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 11:

Managing Files and Directories, page 352.

asked 02/10/2024
Jonathan Steeman
32 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first