commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
--dry-run will only show you which files would be otherwise synced with rsync.
-z is for compressio
-a "as is" - permissions, ownership etc.
Check all bash scripts in current dir for syntax errors WITHOUT running them.
also could specify port number:
lsof -ni TCP:80