Which of the following commands will display the last five lines of a file called file1.txt? (choose two)

  • Post author:
  • Post category:Q&A
  • Reading time:1 min read
  • Post last modified:March 15, 2025

Which of the following commands will display the last five lines of a file called file1.txt?

(choose two)

  • head -n 5 file1.txt
  • tail -5 file1.txt 
  • tail file1.txt
  • tail -n 5 file1.txt

For more questions and answers go to the below link:

Linux Unhatched Assignments Assessment Exam Answers Full 100%