fore-and-aft

Running along the length of a ship, front to back.