Home » Questions » Computers [ Ask a new question ]

Could less show the viewed proportion of text file?

Could less show the viewed proportion of text file?

As the title implies, when I am browsing text file,I would like to know the current viewed porportion of the whole text file.

Asked by: Guest | Views: 35
Total answers/comments: 2
Guest [Entry]

"If you open a file with less then pressing Ctrl-g will display the current line number, total lines and percentage as well as shown below:

lines 51-100/185 byte 3228/5886 54% (press RETURN)"
Guest [Entry]

"less -M +Gg

for not very big files it's OK, because +G (G command) go till the end of file"