How to reach end of the file in a sing command?

Asked By 20 points N/A Posted on -
qa-featured

I suppose to read some file everyday to correction for my thesis, the thesis file is not small, it is all about 120 or 160 page.

Every day when I open this file I need to scroll a long time to go down of this file where I suppose to change something, is there any solution to go down on the file in a single command?

SHARE
Answered By 0 points N/A #134017

How to reach end of the file in a sing command?

qa-featured

Hi Williams,

There is a good command in Red Hat Linux system that can help you for your desired solution.

Display first few lines of text in a file:

Display last few lines of a text file
# tail   < file name >
# tail -n 20   < file name> (Display last 20 lines of text file)

# head    <file name>   ( This is command will show you first 10 lines by default)
# head  -n 20  <file name >

Britnu Salu

Login/Register to Answer

Related Questions