how to create a file and make it executable in one command?
how to create a file and make it executable in one command?
You want the install command.
touch file && chmod +x file is good but this here is the one true command for the purpose.
install -m755 /dev/null target was the first thing I thought of. I would never use this but it is a single command.