In what way, are you a new user to Unix commands?
A book on Bash would be helpful.
Practical Guide to Linux Commands, Editors, and Shell Programming, A (2nd Edition) [Paperback] the book Don't be fooled by the name, the second addition includes Mac OS X.
Advanced Bash Script. premise: Examples for everything. I have revision 6.2.
BASH Programming - Introduction HOW-TO
Check you local library. Any book on Bash syntax will do. There will be minor differences but they will not be great.
Sometimes you can get a good deal on used books in Amazon.
Bash Cookbook, Carol Albing, JP Vossen & Cameron Newham (O'Reilly)
I know it's old, but I haven't seen an update. Look.
Mac OS X Tiger in a Nutshell: A Desktop Quick Reference (In a Nutshell (O'Reilly)) http://www.amazon.com/Mac-OS-Tiger-Nutshell-Reference/dp/0596009437/ref=sr_1_4?s =books&ie=UTF8&qid=1285174595&sr=1-4the book
dscacheutil still works. If you are getting an error to the effect that dscacheutil is unable to get the node entries, then you need to reset the cache.
Essentially, the DNS and mDNS processes have been "unlinked" from each other compared to how they used to interact with each other and dscacheutil in older versions of OS X.