LPI
117-010 · Question #79
Which command will display the last line of the file foo.txt?
The correct answer is D. tail -n 1 foo.txt. See the full explanation below for the reasoning.
Question
Which command will display the last line of the file foo.txt?
Options
- Ahead -n 1 foo.txt
- Btail foo.txt
- Clast -n 1 foo.txt
- Dtail -n 1 foo.txt
How the community answered
(52 responses)- A10% (5)
- B4% (2)
- C2% (1)
- D85% (44)
Community Discussion
No community discussion yet for this question.