A cockpit or flight deck is the area, usually near the front of an aircraft, from which a pilot controls the aircraft.
The cockpit of an aircraft contains flight instruments on an instrument panel, and the controls that enable the pilot to fly the aircraft. In most airliners, a door separates the cockpit from the passenger compartment.