This guide assumes you're using a Mac, an SD card and the disk mounts at /dev/disk2
Find the disk...
diskutil list
Look for the disk that matches the size of the SD card you put into the card slot. Again, we're going to assume it landed at /dev/disk2
Now unmount it...
diskutil unmountDisk /dev/disk2
sudo dd bs=1m if=/dev/rdisk2 of=rpi-w.img
sudo dd bs=1m if=rpi-w.img of=/dev/rdisk2