• Nath@aussie.zone
    link
    fedilink
    arrow-up
    20
    arrow-down
    3
    ·
    1 day ago

    The problem is the standard apps are just that - standard. I can hop onto any Redhat, Debian or Solaris 10 box at work and use ls, cat etc.

    If I went all-in on some bespoke alternatives on my special snowflake machine, I’d constantly be going nuts entering incorrect commands on remote machines and losing efficiency. Then, I’d go back to just using the standard commands everywhere.

    • silasmariner@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      7 hours ago

      They’re not though are they. Remember the pain of the last time you tried to write a portable sed then just gave up and used a `perl -pe’? That’s real. We’ve all been there.

  • grrgyle@slrpnk.net
    link
    fedilink
    arrow-up
    8
    ·
    edit-2
    1 day ago

    I fkn knew eza would be at the top of this list.

    E: I can’t talk, though. Here are my aliases:

    alias    ls='eza --time-style="+%Y-%m-%d" --group-directories-first --hyperlink --colour=never -hlF always --icons --git'
    alias    ll='eza --time-style="long-iso" --group-directories-first --no-permissions --hyperlink --colour=never -hoalF always --icons --git'
    alias     l='eza --time-style=relative --group-directories-first --hyperlink --colour=auto -hlF=always --icons --no-permissions --no-user'
    
  • silasmariner@programming.dev
    link
    fedilink
    arrow-up
    34
    ·
    2 days ago

    Why is fzf, the best utility, relegated to the end? And why is ripgrep - a huge improvement over grep, especially if you want to search only on committed files in a git directory - not even mentioned? This list is outrageous. Even more so because I can’t pretend to have known about all of these before, and annoyingly now have to face the fact that some of these actually look pretty handy.

    • Jakeroxs@sh.itjust.works
      link
      fedilink
      arrow-up
      6
      arrow-down
      2
      ·
      1 day ago

      Can you explain why a little shorter? Ain’t trying to read that whole thing rn, though the snippets I read were interesting

      • Gamma@programming.dev
        link
        fedilink
        English
        arrow-up
        2
        ·
        5 hours ago

        Relevant except below, bolded is the key point.

        -v prints non-printing characters in a visible representation. Making strange characters visible is a genuinely new function, for which no existing program is suitable. (sed -n l, the closest standard possibility, aborts when given very long input lines, which are more likely to occur in files containing non-printing characters.) So isn’t it appropriate to add the -v option to cat to make strange characters visible when a file is printed?

        The answer is “No.” Such a modification confuses what cat’s job is  concatenating files  with what it happens to do in a common special case  showing a file on the terminal. A UNIX program should do one thing well, and leave unrelated tasks to other programs. cat’s job is to collect the data in files. Programs that collect data shouldn’t change the data; cat therefore shouldn’t transform its input.

    • vvv@programming.dev
      link
      fedilink
      arrow-up
      16
      ·
      2 days ago

      most shells have a CDPATH which works just like PATH but for directories. set it to $HOME/projects/:$HOME/porn/ or whatever, and you’ll get the subdirectories in your cd tab completion, without installing extra stuff

    • fxomt@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      5
      ·
      2 days ago

      I’ve just replaced cd with it. It’s so fucking convenient writing cd n and immediately entering my config, then writing cd f and entering some other project of mine.

    • Albbi@lemmy.ca
      link
      fedilink
      arrow-up
      4
      arrow-down
      1
      ·
      2 days ago

      Me too! Only learned about it a while ago too. I hate logging into machines that don’t have it.

    • andioop@programming.dev
      link
      fedilink
      English
      arrow-up
      19
      ·
      2 days ago

      Am local village idiot curious as to why this would be controversial.

      First guess: advising change from familiar workflow

      Second guess: gotta download a lot of these

    • Jakeroxs@sh.itjust.works
      link
      fedilink
      arrow-up
      2
      ·
      1 day ago

      I have used it a couple times but I was unsure if using it to simply replace cp or mv commands was “proper”

  • jnerk@lemm.ee
    link
    fedilink
    arrow-up
    3
    ·
    1 day ago

    Can someone give me a summary? That website keeps crashing my browser…

    • Overspark@feddit.nl
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      1 day ago

      You can also let bat render your man pages, with some nicer coloration (and theming) than man does by default.

    • emzili@programming.dev
      link
      fedilink
      English
      arrow-up
      15
      arrow-down
      1
      ·
      2 days ago

      The default output of ls is uncolored, but some distros include an alias in your .bashrc for ‘ls’ to ‘ls --color=auto’, so you definitely don’t need a whole other utility just for colored output

        • massive_bereavement@fedia.io
          link
          fedilink
          arrow-up
          4
          ·
          2 days ago

          Wow, pretty cool the tree and total size options, kind of substitutes other commands I commonly use.

          Only thing is though I find it slower than du and tree.

          • Overspark@feddit.nl
            link
            fedilink
            arrow-up
            2
            ·
            1 day ago

            You can also try something like broot. Lovely TUI file manager that shows how big folders are when you start it with the -w option, faster than either du or tree in my experience.

        • emzili@programming.dev
          link
          fedilink
          English
          arrow-up
          3
          ·
          2 days ago

          That’s true, I was mostly speaking to that specific use-case. It certainly sounds like it has generally superior functionality to ls, but for me personally it doesn’t beat out the utility of already being present on every linux system I’ll touch.

          That’s unlike something like rsync which is genuinely more useful than scp for anything other than simple file transfers.

          • Overspark@feddit.nl
            link
            fedilink
            arrow-up
            3
            ·
            2 days ago

            Yeah that’s fair, I only use it on systems where I’m in full control and use enough to get all my toys set up properly, which goes for all the commands in the article. I’ve just aliased ls to eza though, so it’ll mostly (options are a bit different) keep working on any system I’m on.