• abraham_linksys
    link
    fedilink
    arrow-up
    10
    ·
    1 year ago

    yes

    It repeatedly spams y and a return so you can pipe it into just about any command.

    I find it amusing because instead of me having to lean on the keyboard, the computer does it for me.

    Usage: yes | scriptthatneedstoshutupandrun.sh

      • Glowworm6441
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        Interesting. I’ve been using BYOBU as a tmux wrapper for a while now. I’ll have to check out Zellij as well

    • med
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      1 year ago

      This is my new build go to package. Right behind vim and netstat.

      Before running updates or big installs, get in to a tmux session. If your ssh session drops, it won’t interrupt the process.

      If you want to see multiple servers/network devices, run the same commands, see the same output, switch on pane synchronization and run identical commands in all of them. Even password inputs when you run in to a sudo.

      You can design layouts by percentage of the screen - 30%, 60% I’ve got three sites with redundant ISPs, 6 panes showing mtr sessions for each link, which work on any terminal size.

      You can have someone else log in to the server and connect to the same tmux session as you, and show them what you’re doing and typing real time. Then collect the log afterwards.

      I found a tmux session on a CentOS box that had been running for 5 years in the lab environment when I joined my current company - the guy who spawned it left 4 years ago.

      It’s incredibly powerful.

      Also, mtr-tiny is great for diagnosing latency issues

    • FeatherConstrictor
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      Learned and used Tmux for my free tier oracle cloud-hosted Minecraft server :) was great to get it to be constantly up without someone needing to SSH in and start the server every time or keep the SSH terminal open without confirmation while playing

  • 9488fcea02a9
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    1 year ago

    vrms - virtual richard m. stallman

    Tells you if you have non-free software installed and and makes you feel bad

    Edit: did not realize it was renamed to “check-dfsg-status”

  • wildbus8979
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    lsof, it can show you opened files, which process is holding a file, opened sockets, etc. Extremely useful!

    • med
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      pv is like magic for writing iso’s or other large files to slow media. Has it finished? Is there data left to transfer? Now you know.

  • ChickenAndRice
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    Nala

    It’s an alternative to apt package manager that gives you cleaner log outputs, parallel downloads, and a history list of package actions that you’ve taken

    I always install this on Ubuntu / Debian distros