Linux CLI - Viewing and Editing Files
Which of the following is the correct syntax to display the last 5 lines of a file named
log.txt?log.txt?tail shows the end of a file, so it is used to show last lines.-n option-n 5 specifies to show 5 lines. So tail -n 5 log.txt is correct.tail -n 5 shows last 5 lines [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions