LPIC-1 Exam 101 (Linux Administrator) — Question 42

Which of the following commands will print the last 10 lines of a text file to the standard output?

Answer options

Correct answer: D

Explanation

The correct answer is D, as the 'tail' command specifically retrieves the last lines of a file. Options A and C use 'cat' and 'head', which do not provide the last lines, and option B is an incorrect command that doesn't exist in standard usage.