Monday 26 November 2012

How to use tail command in ubuntu

How to use tail commands in Ubuntu?


How to prompt last 3 lines of the file?

Lets show it on the example file: file.txt

How to show last three lines of the text file in ubuntu with tail command

One of the methods is to use tail command

tail -n X file.txt

where X is number of last lines which we want to prompt

tail -n 3 file.txt



How to prom[t last 3 lines of file in ubuntu with command tail

No comments:

Post a Comment