less and more seem to have very similar functionality in that they both page through text a screen at a time.
What reasons are there to use one over the other?
less and more seem to have very similar functionality in that they both page through text a screen at a time.
What reasons are there to use one over the other?
more is a legacy program, and less is an improved version of more (the ability to scroll backwards being the biggest difference, but there are others such as searching within the text). Unless you're working on either a truly antique system or a pared-down embedded one where less isn't available, there is no reason to ever use more.
less program needs to buffer the entire output, which can easily exhaust memory on a small device. Also, darn youngsters should get off my lawn!
– Simon Richter
Jul 18 '13 at 12:48
less doesn't need to buffer the entire output, it buffers 64k by default. See the -b and -B options. Also, less runs perfectly well on embedded, it's just that it's a relatively big program, and busybox already provides its own simplistic versions of less and more.
– ninjalj
Jul 19 '13 at 06:59