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:
Return the current shell. It is better than print $SHELL which can sometimes return a false value.
If you are in /begin/path/with/XX/pattern
cd XX YY
will change your current directory to