Thursday, May 2, 2024
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 810  / 3 Years ago, wed, july 28, 2021, 1:12:33

Is there a console application equivalent to Total Commander's fast file viewer (F3)?



Total Commander's (Windows app) F3 viewer can instantly "open" files of any size. The file contents is only read from the disk if you need it: that is, if you scroll or search inside the file.



Is there an alternative app for Linux/Ubuntu that will do the same, but from the console? Being a "console" app is essential, otherwise there are plenty of Total Commander alternatives that I know of having a "View"/F3 option.


More From » software-recommendation

 Answers
0

There is a built-in file viewer for the console called "less", which is an enhanced version of the older Unix/Linux viewer "more" (which is also available). It is the same as the pager used for man, or the option --help.



with less, you can view a file one page at a time. Pressing space will move to the next page, and b wil back up a page. using a slash, /, will search (as in Vi), and n finds the next occurence.



There are more commands and options.



Oh, and to exit, you press q, which leaves the screen back to where it was previously, more or less.



Edit: In case it is not clear, to use less, you simply enter "less filename". And in case you didn't know, like almost every command, entering "less --help" gives a summary of usage.


[#35277] Wednesday, July 28, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
izecaptur

Total Points: 113
Total Questions: 102
Total Answers: 114

Location: Northern Mariana Islands
Member since Fri, Jan 15, 2021
3 Years ago
;