Timeline for How can I display the contents of a text file on the command line?
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 7, 2013 at 21:26 | comment | added | SG60 |
@ott-- I've never had problems with less 's alternate screen buffer, as it only does this when the file to show will not fit on the screen in its entirety.
|
|
Aug 14, 2013 at 14:04 | comment | added | SG60 |
@EvanTeitelman I've always found the grep functionality extremely useful myself, @ott-- I find that because of it's emulation of more , and it's many additional features, it does the job very well.
|
|
Aug 11, 2013 at 19:00 | comment | added | user26112 |
Though, in general, I do agree that less is overly-complicated. Its ability to run external commands is a perfect example of its over-complexity.
|
|
Aug 11, 2013 at 17:36 | comment | added | user26112 | See also: unix.stackexchange.com/questions/81129/… | |
Aug 11, 2013 at 17:35 | comment | added | user26112 |
@ott--: 1) Try out the -X flag. 2) Try out the -E flag. less has a more emulation mode. You can enable it by setting the LESS_IS_MORE environmental variable. You can scroll upwards in the more emulation mode.
|
|
Aug 11, 2013 at 15:57 | comment | added | ott-- |
less is the overkill-version of more (compare man less with man more ), and for me it has two annoying features: 1) it switches to the alternate screen buffer, when less terminates, the file you were just viewing vanishes 2) at EOF you have to explicitly type q (I know, there's an option for this). So one of my first actions in a new environment is setting export PAGER=/bin/more in my profile and use more all the time.
|
|
Aug 11, 2013 at 15:05 | review | First posts | |||
Aug 11, 2013 at 15:57 | |||||
Aug 11, 2013 at 14:48 | history | answered | SG60 | CC BY-SA 3.0 |