Content Warning

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

lm.preferlinux.de
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
tetris11@lemmy.ml to Linux@lemmy.ml · 1 year ago

Less vs More, what's your poison?

message-square
message-square
30
link
fedilink
30
message-square

Less vs More, what's your poison?

tetris11@lemmy.ml to Linux@lemmy.ml · 1 year ago
message-square
30
link
fedilink
alert-triangle
You must log in or # to comment.
  • NichtElias@sh.itjust.works
    link
    fedilink
    arrow-up
    50
    ·
    1 year ago

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

    • lordnikon@lemmy.world
      link
      fedilink
      English
      arrow-up
      16
      ·
      1 year ago

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

  • LupusBlackfur@lemmy.world
    link
    fedilink
    arrow-up
    22
    ·
    1 year ago

    Been using Less for so long…

    Forgot More existed. 🤷‍♂️

  • SpicySquid@lemmy.ml
    link
    fedilink
    arrow-up
    20
    ·
    1 year ago

    Less, but actually bat

    • tetris11@lemmy.mlOP
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

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

      • msherburn33@lemmy.ml
        link
        fedilink
        arrow-up
        11
        ·
        1 year ago

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

        $ cat ~/.config/bat/config
        --wrap=never
        
        • tetris11@lemmy.mlOP
          link
          fedilink
          arrow-up
          3
          ·
          1 year ago

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

        • Jerkface (any/all)@lemmy.ca
          link
          fedilink
          English
          arrow-up
          3
          ·
          edit-2
          3 months ago

          Removed by mod

          • Hule@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            1 year ago

            Souldn’t there be two of those to append?

            Ow! ^

  • Balthazar@lemmy.world
    link
    fedilink
    arrow-up
    17
    ·
    1 year ago
    alias more=less
    
  • JoeKrogan@lemmy.world
    link
    fedilink
    arrow-up
    11
    ·
    edit-2
    1 year ago

    “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
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      1
      ·
      1 year ago

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

  • setVeryLoud(true);@lemmy.ca
    link
    fedilink
    arrow-up
    6
    ·
    1 year ago

    Less is more!

  • 柊 つかさ@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    1 year ago

    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.

  • MonkderVierte@lemmy.ml
    link
    fedilink
    arrow-up
    6
    ·
    1 year ago

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

    • tetris11@lemmy.mlOP
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      is that an alias or a sys env?

      • MonkderVierte@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

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

        • tetris11@lemmy.mlOP
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago

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

          • MonkderVierte@lemmy.ml
            link
            fedilink
            arrow-up
            2
            ·
            1 year ago

            Yeah, less is weird there with needing the pipe.

  • Jerkface (any/all)@lemmy.ca
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    3 months ago

    Removed by mod

    • tetris11@lemmy.mlOP
      link
      fedilink
      arrow-up
      5
      ·
      1 year ago

      your buffer size must exceed several floppies!

  • zagaberoo@beehaw.org
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    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.

  • ferric_carcinization@lemmy.ml
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 year ago

    Neither, bat or neovim.

  • simonced@lemmy.ml
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

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

  • zaphodb2002@sh.itjust.works
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    Most!

  • nao@sh.itjust.works
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    1 year ago

    more only if less is not available

  • mvirts@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

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

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.

  • 435 users / day
  • 975 users / week
  • 2.22K users / month
  • 6.92K users / 6 months
  • 1 local subscriber
  • 65.1K subscribers
  • 2.2K Posts
  • 17.4K Comments
  • Modlog
  • mods:
  • nooter692@lemmy.ml
  • MarcellusDrum@lemmy.ml
  • Arthur Besse@lemmy.ml
  • Cyclohexane@lemmy.ml
  • BE: 0.19.17
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org