bennychidge
July 17th, 2009, 08:45 PM
please excuse my knowledge here.
I am new to Ubuntu and have setup a VPS and am slowly learning lots of great things about Ubuntu. Now I am having a little look at bash scripts and thats pretty good stuff to.
here is a script I am going to implement onto my vps
http://www.askapache.com/javascript/serve-external-javascript-files-locally-for-increased-speed.html
A few questions I have are
What is the reference in the script to
$HOME and
$OLDPWD
are these hard wired onto a Ubuntu system, how do I find out there locations? (
$HOME) seems to be a reference to the root folder.
Also what is the best practice? Should I download the ga.js and store it where? somewhere in root and add a symbolic link to my script folder within my website. Or should I save it straight to the script folder and not bother sym linking it?
Also do you have any great examples/tutorials for writing understanding how to write bash scripts?
Thanks in advance and I appologise if these are silly questions.
I am new to Ubuntu and have setup a VPS and am slowly learning lots of great things about Ubuntu. Now I am having a little look at bash scripts and thats pretty good stuff to.
here is a script I am going to implement onto my vps
http://www.askapache.com/javascript/serve-external-javascript-files-locally-for-increased-speed.html
A few questions I have are
What is the reference in the script to
$HOME and
$OLDPWD
are these hard wired onto a Ubuntu system, how do I find out there locations? (
$HOME) seems to be a reference to the root folder.
Also what is the best practice? Should I download the ga.js and store it where? somewhere in root and add a symbolic link to my script folder within my website. Or should I save it straight to the script folder and not bother sym linking it?
Also do you have any great examples/tutorials for writing understanding how to write bash scripts?
Thanks in advance and I appologise if these are silly questions.