How to display the last line?

090

To display the last line of a file, you can use the tail command as follows:

tail -n 1 filename.txt

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

0 Comments

no data
Be the first to share your comment!