Interview Questions

How will you display the last 20 lines of a file?

Use the command "tail" to display the last part of the file. By default, it displays the last 10 lines of the file.

If you need to display more than 10 lines, then execute the following command,

bash# tail -20 Test.txt