QuestionQ192

Essential Commands

Which of the following commands prints the final 10 lines of a text file to standard output?

  • A cat -n 10 filename
  • B dump -n 10 filename
  • C head -n 10 filename
  • D tail -n 10 filename
Explanation

tail -n 10 filename outputs the last 10 lines of the specified text file to standard output.

Community Discussion

No comments yet. Be the first to start the discussion!