LPI Exam Questions

Which command will display the last line of the file foo.txt?

Which command will display the last line of the file foo.txt?

A.
head -n 1 foo.txt

B.
tail foo.txt

C.
last -n 1 foo.txt

D.
tail -n 1 foo.txt