how to create a file and make it executable in one command?

https://lemmy.ml/post/15185955

how to create a file and make it executable in one command? - Lemmy

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?

You could append the chmod command with && but that’s probably not what you wanted.