Two quite correct answers already. In the Royal Navy of the 18/19 th. century, victims of the 'press gangs' were not popular aboard ship. These landlubbers needed to be taught everything about shipboard duties. 'Knowing the ropes' was essential. It involved teaching the basics about everthing. Failing meant a dose of the 'ropes-end'.