Which of the following will execute the command?
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
B . tail -n 20
C . tail -c 20
D . tail -l 20
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.
Latest XK0-005 Dumps Valid Version with 136 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Subscribe
Login
0 Comments
Inline Feedbacks
View all comments