How to display multiple last lines?

091

To display multiple last lines of a file, you can use the tail command with the -n option followed by the number of lines you want to display. For example, to display the last 5 lines of a file, you can use:

tail -n 5 filename.txt

Replace filename.txt with the name of your file. This command will show the last 5 lines of the specified file.

0 Comments

no data
Be the first to share your comment!