I claim this expression as a nauticalism. The new sailor on a wind-powered vessel was expected to "learn the ropes" by sorting out which lines raised, lowered and trimmed which sails. Once mastered, it could be said that the sailor "knew the ropes" and was therefor no longer a neophyte.