Top 5 Command Prompt Tips

3/10/2006

Typing commands instead of mouse-clicking… sound a bit old-fashioned? It’s true, once upon a time all computing was done this way. It may not be pretty, but the command line can still be pretty handy. Here’s a few commands I use:

  1. PING
    If you need to check your connection to something, this is the basic check. You can either ping a name or an IP address.
    ping www.sitename.com
    or
    ping 127.0.0.1
    are both valid. If you ping a name, you can also see what IP address that name resolves to.
  2. TRACERT
    This will trace the route to another computer. Again, you can use a name or an IP address.
    tracert www.sitename.com
  3. SHUTDOWN
    This one will shut the computer down. (Pretty obvious, hey!) Really handy to put at the end of a batch file that does a backup or something similar. Heaps of switches, so type shutdown /? to display all the options available.
  4. IPCONFIG 
    Displays the IP address of your computer, plus the address of your gateway (eg your ADSL modem or the computer that’s actually connected to the internet).
  5. XCOPY
    Great for quick and easy batch backups. Check xcopy /? for all options available.

That’s 5 that I use a fair bit – got any others?

If you’re really bored, here’s Microsoft’s A-Z Reference.

No Comments

301 Redirects

22/09/2006

There are thousands of these posts out there already – I’m putting this here for my benefit more than anything else. Saves me from having to Google when I need to check how it should be done!

So – if you move a page and want it to be followed by a search engine (and keep it’s pagerank etc), open up your htaccess file and enter (all on one line):

redirect 301 /olddir/oldpage.html http://www.newsite.com.au/newdir/newpage.html

Or if you’re shifting a whole directory (again, all on one line):

redirect 301 /olddir/ http://www.newsite.com.au/newdir/

The 301 code says “moved permanently”, so don’t use it for temporary redirections. Obviously this htaccess stuff is for linux servers, if you’re on Windows then there’s a different way… But you’ll have to find that somewhere else!

No Comments

Visual jQuery

7/09/2006

Not sure how long this has been online, but here’s a very handy visual reference for jQuery. This is a really cool way to present online documentation – not much reading required – just gets you straight to the bits you need.

No Comments