Less vs More, what's your poison?
from tetris11@lemmy.ml to linux@lemmy.ml on 20 May 21:57
https://lemmy.ml/post/30420034

#linux

threaded - newest

SpicySquid@lemmy.ml on 20 May 21:59 next collapse

Less, but actually bat

tetris11@lemmy.ml on 20 May 22:01 collapse

I use bat sometimes, but how do you stop it from wrapping lines?

msherburn33@lemmy.ml on 20 May 23:43 collapse

I use bat sometimes, but how do you stop it from wrapping lines?

$ cat ~/.config/bat/config
--wrap=never
timroerstroem@feddit.dk on 21 May 06:17 next collapse

$ cat ~/.config/bat/config

The irony.

tetris11@lemmy.ml on 21 May 08:10 next collapse

I ain’t got no time for no config! I’m a busy man!

jerkface@lemmy.ca on 21 May 11:22 collapse

You dropped your friggin’ > in another thread and I just stepped on it. Pain like Lego.

Hule@lemmy.world on 22 May 19:21 collapse

Souldn’t there be two of those to append?

Ow! ^

jeena@piefed.jeena.net on 20 May 22:00 next collapse

I thought Less is More?

But because it comes first that is what I usually use.

tetris11@lemmy.ml on 20 May 22:01 collapse

I use less always, and am genuinely puzzled by people who use more

petey@aussie.zone on 20 May 23:10 collapse

Old habits die hard? I used to administer old SunOS machines that didn’t have less (and would take considerable effort to install on all of the machines) so these days I just alias more to less

slazer2au@lemmy.world on 20 May 22:01 next collapse

More

JoeKrogan@lemmy.world on 20 May 22:01 next collapse

“less”. If its a small file i use cat. If i want the top I use “head” or "tail’ for the bottom. For a specific string i use “grep”

tomcatt360@lemmy.zip on 21 May 00:11 collapse

I feel like more punctuation was called for here. /s

catloaf@lemm.ee on 20 May 22:06 next collapse

I don’t know why anyone would use more when less is more with more features.

PoisonedPrisonPanda@discuss.tchncs.de on 20 May 22:14 next collapse

Isn’t more like the main driver for our prospering civilization?

Some might say that the shift in desiring less is the downward path for the over-saturated humanity.

But lets not get too deep here.

ABetterTomorrow@lemm.ee on 20 May 22:31 next collapse

Depends…

nao@sh.itjust.works on 20 May 22:39 next collapse

more only if less is not available

lupusblackfur@lemmy.world on 20 May 23:13 next collapse

Been using Less for so long…

Forgot More existed. 🤷‍♂️

Balthazar@lemmy.world on 20 May 23:18 next collapse

alias more=less
Eyedust@lemmy.dbzer0.com on 21 May 04:39 collapse

Godless heathen here.

MonkderVierte@lemmy.ml on 21 May 10:02 next collapse

Yes?

Balthazar@lemmy.world on 21 May 12:51 collapse

At least I use bash!

zaphodb2002@sh.itjust.works on 20 May 23:39 next collapse

Most!

NichtElias@sh.itjust.works on 20 May 23:43 next collapse

It’s said that less is more but I more or less use less more than more.

lordnikon@lemmy.world on 21 May 00:17 next collapse

I both understood that sentence perfectly and sounded like a crazy person while reading it out loud.

brisk@aussie.zone on 21 May 21:11 collapse

This would fit in perfectly in Dr Suess’ Hop on pop

CsXGF8uzUAOh6fqV@lemmy.world on 20 May 23:49 next collapse

less or bat, but I usually use by paging up and down so it’s not that different from more… My terminal emulator only pages up and down, I like it that way.

Ulrich@feddit.org on 21 May 00:54 next collapse

Could you be more cryptic?

HeerlijkeDrop@thebrainbin.org on 21 May 04:02 next collapse

Those are two pager programs on Linux. less has more features than more and that's what most people use.

Ulrich@feddit.org on 21 May 04:14 collapse

What’s a pager program?

Laser@feddit.org on 21 May 05:24 collapse

Allows you to scroll through / view a text file in the terminal.

tetris11@lemmy.ml on 21 May 08:09 next collapse

Yes, back in days of yore when the cyberbunnies had to run their lines through the bare wastes of the great Dave’s router, there existed a tool so coveted by the eunuchs that they named it twice, and would beg for degrees of release depending on how gimped up they were. “More” some would scream, “less” others would whisper.

MonkderVierte@lemmy.ml on 21 May 10:00 collapse

RTFM.

hallettj@leminal.space on 21 May 01:05 next collapse

I’m not sure if I’ve used more in the last 25 years. And when I did I think it was in MS-DOS.

ferric_carcinization@lemmy.ml on 21 May 08:54 next collapse

Neither, bat or neovim.

thebardingreen@lemmy.starlightkel.xyz on 21 May 09:34 next collapse

tail -f of vim

MonkderVierte@lemmy.ml on 21 May 10:04 next collapse

LESSOPEN=‘| highlight --line-numbers -qs candy --out-format=xterm256 --stdout -i %s’

tetris11@lemmy.ml on 21 May 10:32 collapse

is that an alias or a sys env?

MonkderVierte@lemmy.ml on 21 May 10:34 collapse

Sys env. It adds syntax highlighting to less. Needs the highlight tool of course, there are others.

tetris11@lemmy.ml on 21 May 10:44 collapse

oh, it literally pipes into another tool! I thought that vertical bar was a config option for less lmao

MonkderVierte@lemmy.ml on 21 May 15:18 collapse

Yeah, less is weird there with needing the pipe.

jerkface@lemmy.ca on 21 May 11:22 next collapse

I use a teletype. My scrollback is INFINITE.

tetris11@lemmy.ml on 21 May 11:24 collapse

your buffer size must exceed several floppies!

zagaberoo@beehaw.org on 21 May 13:01 next collapse

I like that more behaves like cat when there’s less than a page of output rather than requiring you to press q to get back to the prompt even when it would just fit.

There’s probably a way to make less do that too, but more already does it without configuration. Overall I use less most of the time but I like having the option.

deadcatbounce@reddthat.com on 21 May 17:35 next collapse

bat.

simonced@lemmy.ml on 22 May 07:50 next collapse

I use more because I learned more first. Now it’s in muscle memory, so I won’t change anytime soon.

isVeryLoud@lemmy.ca on 22 May 13:29 next collapse

Less is more!

mvirts@lemmy.world on 22 May 18:30 next collapse

Less, then “vim -” after I realize I don’t know how to use less.

AndyRTR@lemmy.ml on 23 May 19:34 collapse

alias less=‘moar’