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
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
No comments:
Post a Comment