Which of the following commands can you use to see only the last ten lines of a file?
Each correct answer represents a complete solution. Choose all that apply.
A.
head
B.
tail -10
C.
head -10
D.
tail
Explanation:
The tail or tail -10 command can be used to see only the last ten lines of a file. The tail -n
command is used to see the last n lines of a file. By default, the tail command shows the last 10
lines of a file.
Answer options A and C are incorrect. The head or head -10 command can be used to see only
the first ten lines of a file. The head –n command is used to see the first n lines of a file. By default,
the head command shows the first 10 lines of a file.