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?

  • @NegativeLookBehind
    link
    English
    16
    edit-2
    8 months ago

    You want the install command.

    install

    At least, I think this will do it. I haven’t used it in a while.

    • 2xsaiko
      link
      fedilink
      28 months ago

      install -m755 /dev/null target was the first thing I thought of. I would never use this but it is a single command.

        • 2xsaiko
          link
          fedilink
          18 months ago

          I’m going to write (at least part of) the script first anyway, and then I can just use chmod +x after the file is saved which is shorter.