Flush DNS on the Mac

If you want to flush the DNS on you mac it's pretty simple. Open the Terminal window and type

dscacheutil -flushcache

This command applies to all user of Leopard. For other users you use

lookupd -flushcahe

This command is the equivalent of the Windows command "ipconfig /flushdns".


Mac OS X Terminal Commands

I am a programmer and therefor I just have to have control over what's happening under the cover on my computer.

Mac OS X is really Unix-based and when using the Terminal window you can use different commands from the Unix world to talk to your computer and make it do things under the cover. I am not really a Unix/Linux programmer, although I have had some experience in this. This made me look for a simple chart of some sort that shows the most simple commands accessible to me when using Terminal. I found a quite good pdf containing just what I needed. So now I am looking under the cover of Mac OS X. I don't really know I'll be doing, but maby I'll do some posting of stuff I do here.

You can view the pdf here.

Taking a screenshot on the Mac

Sometimes I'm in need of making a quick image of my screen to show to someone, or maby capturing an error message. On a PC keyboard I use the "Print Scrn", but on my MacBook?

A quick search gave me an excellent solution to the problem here. Here you go:

Apple (Command) Key +Shift+3
Captures entire desktop to a file on the desktop as 'picture #' . This option lets you capture the whole screen. If you want just one window on your screen, you will have to edit the picture using image editing software.

Apple (Command) Key +Shift+4
Allows you to use your mouse to select a specific part of your desktop for capture. This will turn your mouse pointer into a cross, please hold down the mouse button and drag to select the part of the screen you want. When you release the button the screenshot will "snap" that part of the screen. Press 'Esc' to release.

Apple (Command) Key +Shift+4 then press Spacebar
Allows you to select which window to capture.

Even better than on my PC!