In commercial aviation, the first officer is the second pilot (also referred to as the co-pilot) of an aircraft. The first officer is second-in-command of the aircraft to the captain, who is the legal commander. In the event of incapacitation of the captain, the first officer will assume command of the aircraft.
Control of the aircraft is normally shared equally between the first officer and the captain, with one pilot normally designated the "pilot flying" (PF) and the other the "pilot not flying" (PNF), or "pilot monitoring" (PM), for each flight. Even when the first officer is the flying pilot, however, the captain remains ultimately responsible for the aircraft, its passengers, and the crew. In typical day-to-day operations, the essential job tasks remain fairly equal.
Many airlines promote by seniority only within their own company. As a consequence, an airline first officer may be older and/or have more flight experience than a captain, by virtue of having experience from other airlines or the military. Traditionally, the first officer sits on the right-hand side of a fixed-wing aircraft ("right seat") and the left-hand side of a helicopter (the reason for this difference is related to the fact that in many cases the pilot flying is unable to release the right hand from the cyclic control to operate the instruments, thus he or she sits on the right side and does that with the left hand). Other airlines may designate the more senior of two first officers operating a long-haul sector together with a captain in an enlarged crew as the senior first officer. The senior first officer will then sit in the left seat when the captain takes his rest.
In the rank of senior first officer the pilot will also sit in the right hand seat. Often the senior first officer position is used within airlines to mean someone who has passed all the requirements for captain, but there are no empty captain's positions within the company as yet, analogous to frocking in the military. The pilot is therefore "on hold" as a senior first officer until a position as captain becomes available, when they will receive their command line check.