Hello, I am hoping to write a couple of shell scripts (such ambition!) and I want to make sure that I start off with using shell scripts in a correct and idiomatic manner. My first observation has been that I should aim for basic
sh
compatibility and use the #! /bin/sh
shebang. What isn't so obvious though, even after an hour of googling (honest!) is where my shell scripts should be saved. Should I create a new folder and add it to the path, or is there an existing folder within the default path which is suitable to use. My attempts so far, to use /usr/local/bin
, for instance, have met with permissions problems, presumably because such folders are not meant for user script files. Please, could someone advise me? Thanks.