Select a camera and then move around in the 3D View to a desired position and direction for your camera (so that you are seeing what you want the camera to see). Now press Ctrl-Alt-Numpad0 and your selected camera positions itself to match the view, and switches to camera view.