• slazer2au@lemmy.world
        link
        fedilink
        English
        arrow-up
        13
        ·
        7 hours ago

        Execute order

        Sudo apt update && sudo apt upgrade -y && sudo apt auto remove -y
        

        Needs a more concise order name…

        • Skullgrid@lemmy.world
          link
          fedilink
          arrow-up
          9
          ·
          edit-2
          1 hour ago
          cd ~
          nano .bash_aliases
          

          At the end of the file

          alias executeOrder="sudo apt update && sudo apt upgrade -y && sudo apt auto remove -y"
          

          Ctrl+X
          Y
          Enter.

          source .bash_aliases
          

          There. Now it’s executeOrder

          Edit : .bash_alias(es?) should be in the home folder. Switch to it with cd ~

        • loweffortname@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          3
          ·
          edit-2
          5 hours ago

          Tiny nits:

          1. apt dist-upgrade is more pitentially destructive.
          2. It’s apt autoremove (no spaces)

          Otherwise, I do this evwry morning on my work machine. It’s very satisfying to have updates.