Etymology
Today it means: A staircase or ladder from one deck to another on a ship. Full definition →
From companion + way.
Etymology from Wiktionary, CC BY-SA 4.0.