3 ms·
I prefer less. Incidentally, the other day I was on a CentOS system where I wanted to paginate a log file and typed in "less". Turns out, unlike more, less isn'
by winteriscoming 10y ago
I prefer less. Incidentally, the other day I was on a CentOS system where I wanted to paginate a log file and typed in "less". Turns out, unlike more, less isn't installed by default. Was a bit surprised because I was under the impression that most Linux systems would have had it in their default install.
- annnnd 10y agoDebian doesn't install it by default either - agree, surprising. On another note, even more surprising is less's behavior with colored output (you have -r and -R switches, which are almost, but not completely, alike; and in neither of them does page-up render properly).
- RJIb8RBYxzAMX9u 10y agoI was pretty sure this is incorrect for at least Debian 8 / Jessie based on recollection. And now I'm 100% sure it's false -- sigh https://www.xkcd.com/386/ https://www.xkcd.com/386/ -- having just installed it in a VM with only "standard system utility" selected (it is selected by default), and verified that less is installed.
- d0mine 10y agoI don't see it: $ docker run --rm debian:jessie less -V docker: Error response from daemon: Container command 'less' not found or does not exist.. while more is present: $ docker run --rm debian:jessie more -V 1 ↵ more from util-linux 2.25.2
- RJIb8RBYxzAMX9u 10y agohttps://github.com/tianon/docker-brew-debian/blob/c2882c541f5bd5cfdd28a505a4e635d42c7fd946/jessie/build-command.txt https://github.com/tianon/docker-brew-debian/blob/c2882c541f... It's using debootstrap --variant=minbase, which (from the man page) "...only includes essential packages and apt." It makes sense that docker would want only the bare minimum. And to be fair, but getting into nit-picking territory, minbase is the default for debootstrap, but debootstrap is not the default method of installing Debian: debian-installer is. So docker's Debian image doesn't install less, but they're not doing a default install, as in invoking debian-installer, and keeping the preselected choices as much as possible.
- majewsky 10y ago> neither of them does page-up render properly Huh? "less -R" has always been working like a charm for me, for scrolling in both directions. Maybe it's related to your terminal emulator? (I use Konsole.)