Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
tetris11 ( tetris11@lemmy.ml )  to Linux@lemmy.ml · 1 年前

Less vs More, what's your poison?

message-square
message-square
33
link
fedilink
37
message-square

Less vs More, what's your poison?

tetris11 ( tetris11@lemmy.ml )  to Linux@lemmy.ml · 1 年前
message-square
33
link
fedilink
alert-triangle
You must log in or register to comment.
  • catloaf ( catloaf@lemm.ee ) 
    link
    fedilink
    English
    arrow-up
    19
    ·
    1 年前

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

  • SpicySquid ( SpicySquid@lemmy.ml ) 
    link
    fedilink
    arrow-up
    17
    ·
    1 年前

    Less, but actually bat

    • tetris11 ( tetris11@lemmy.ml ) OP
      link
      fedilink
      arrow-up
      2
      ·
      1 年前

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

      • msherburn33 ( msherburn33@lemmy.ml ) 
        link
        fedilink
        arrow-up
        11
        ·
        1 年前

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

        $ cat ~/.config/bat/config
        --wrap=never
        
        • timroerstroem ( timroerstroem@feddit.dk ) 
          link
          fedilink
          arrow-up
          11
          ·
          1 年前

          $ cat ~/.config/bat/config

          The irony.

        • tetris11 ( tetris11@lemmy.ml ) OP
          link
          fedilink
          arrow-up
          4
          ·
          1 年前

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

        • Jerkface (any/all) ( jerkface@lemmy.ca ) 
          link
          fedilink
          English
          arrow-up
          2
          ·
          edit-2
          9 个月前

          Removed by mod

  • deadcatbounce ( deadcatbounce@reddthat.com ) 
    link
    fedilink
    arrow-up
    12
    ·
    1 年前

    bat.

  • hallettj ( hallettj@leminal.space ) 
    link
    fedilink
    English
    arrow-up
    8
    ·
    1 年前

    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.

  • MonkderVierte ( MonkderVierte@lemmy.ml ) 
    link
    fedilink
    arrow-up
    6
    ·
    1 年前

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

    • tetris11 ( tetris11@lemmy.ml ) OP
      link
      fedilink
      arrow-up
      1
      ·
      1 年前

      is that an alias or a sys env?

      • MonkderVierte ( MonkderVierte@lemmy.ml ) 
        link
        fedilink
        arrow-up
        3
        ·
        1 年前

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

        • tetris11 ( tetris11@lemmy.ml ) OP
          link
          fedilink
          arrow-up
          2
          ·
          1 年前

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

          • MonkderVierte ( MonkderVierte@lemmy.ml ) 
            link
            fedilink
            arrow-up
            2
            ·
            1 年前

            Yeah, less is weird there with needing the pipe.

  • setVeryLoud(true); ( isVeryLoud@lemmy.ca ) 
    link
    fedilink
    arrow-up
    5
    ·
    1 年前

    Less is more!

  • zagaberoo ( zagaberoo@beehaw.org ) 
    link
    fedilink
    arrow-up
    4
    ·
    1 年前

    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.

  • The Bard in Green ( thebardingreen@lemmy.starlightkel.xyz ) 
    link
    fedilink
    arrow-up
    3
    ·
    1 年前

    tail -f of vim

  • Ulrich ( Ulrich@feddit.org ) 
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 年前

    Could you be more cryptic?

    • HeerlijkeDrop ( HeerlijkeDrop@thebrainbin.org ) 
      link
      fedilink
      arrow-up
      7
      ·
      1 年前

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

      • Ulrich ( Ulrich@feddit.org ) 
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 年前

        What’s a pager program?

        • Laser ( Laser@feddit.org ) 
          link
          fedilink
          arrow-up
          5
          ·
          1 年前

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

    • tetris11 ( tetris11@lemmy.ml ) OP
      link
      fedilink
      arrow-up
      2
      ·
      1 年前

      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 ( MonkderVierte@lemmy.ml ) 
      link
      fedilink
      arrow-up
      1
      ·
      1 年前

      RTFM.

  • ABetterTomorrow ( ABetterTomorrow@lemm.ee ) 
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 年前

    Depends…

    • thingsiplay ( thingsiplay@beehaw.org ) 
      link
      fedilink
      arrow-up
      1
      ·
      1 年前

      Always true. But on what depends it?

  • Jeena ( jeena@piefed.jeena.net ) 
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 年前

    I thought Less is More?

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

    • tetris11 ( tetris11@lemmy.ml ) OP
      link
      fedilink
      arrow-up
      3
      ·
      1 年前

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

      • petey ( petey@aussie.zone ) 
        link
        fedilink
        arrow-up
        8
        ·
        1 年前

        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

  • PoisonedPrisonPanda ( PoisonedPrisonPanda@discuss.tchncs.de ) 
    link
    fedilink
    arrow-up
    3
    ·
    1 年前

    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.

  • simonced ( simonced@lemmy.ml ) 
    link
    fedilink
    arrow-up
    2
    ·
    1 年前

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

  • AndyRTR ( AndyRTR@lemmy.ml ) 
    link
    fedilink
    arrow-up
    2
    ·
    1 年前

    alias less=‘moar’

  • ferric_carcinization ( ferric_carcinization@lemmy.ml ) 
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 年前

    Neither, bat or neovim.

Linux@lemmy.ml

linux@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !linux@lemmy.ml

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

  • !opensource@lemmy.ml
  • !libre_culture@lemmy.ml
  • !technology@lemmy.ml
  • !libre_hardware@lemmy.ml

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 1 user / week
  • 1 user / month
  • 5.52K users / 6 months
  • 1.31K local subscribers
  • 68.1K subscribers
  • 8.11K Posts
  • 108K Comments
  • Modlog
  • mods:
  • AgreeableLandscape ( AgreeableLandscape@lemmy.ml ) deleted by creator
  • nooter692 ( nooter692@lemmy.ml ) 
  • MarcellusDrum ( MarcellusDrum@lemmy.ml ) 
  • Arthur Besse ( cypherpunks@lemmy.ml ) 
  • Cyclohexane ( cyclohexane@lemmy.ml ) 
  • d3Xt3r ( d3Xt3r@lemmy.nz ) deleted by creator
  • BE: 0.19.21
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code