How to import my wallet? I used to run bitcoin on Ubuntu and I have a wallet with 1 coin in it.

I took a backup of my ~/.bitcoin directory which includes a wallet.dat file.

Now I'm running on a mac, using the bitcoint-qt client.

How do I get back the money from that wallet?

Can I just copy it over the existing wallet that the mac client generated?

Is there a way to run a command line client and point to my wallet then transfer coins from it to the new wallet?
I got it to work by simply copying the file over.

An important point to notice if you intend to follow this suggestion:

My mac wallet had 0 coins

If your mac wallet has coins, then don't follow this solution.

First I shut down the bitcoin-qt client. Not sure if this step is necessary but I think it's safer.

Then I copied the wallet.dat file over to 

~/Library/Application Support/Bitcoin/wallet.dat


Then start the bitcoint-qt client again. It might take a bit longer to startup than usual. Don't panic and let it take its time.

Then you will see your coins in the client!