I am tired of creating a file with nano, saving it and then making it executable. Is there a command that makes it in one step?

  • chi-chan~
    link
    fedilink
    72 months ago

    Use && to use multiple commands one after the other, don’t use ;.

    • chi-chan~
      link
      fedilink
      182 months ago

      - && means execute if the command before ended successfully

      - || means execute if the commnad before failed

      - ; just means execute the command - no matter if succeeded or failed

      • @ArcaneSlime@lemmy.dbzer0.com
        link
        fedilink
        12 months ago

        My dude, thanks for this. I’ve been using && for a long time now but never knew the rest, I’m still pretty new to linux comparatively.