What if I want to see the end?

0102

To see the end of a file, you can use the tail command. Similar to head, the tail command also has a -n option to specify the number of lines to display from the end of the file. For example:

tail -n 5 filename

This command will show the last 5 lines of the specified file. If you want to see just the last line, you can use -n 1:

tail -n 1 filename

0 Comments

no data
Be the first to share your comment!