These shell files may prove to be useful. I keep them in /usr/local/bin/ and do not bother with the extension .sh. Do not forget---as I usually do---to type chmod a+x as SU.
The actions are applied to the directory of interest.