If you know the ropes, You know how to do something, or how to get something done.
You know about a certain situation or how a job works. This idiom probably comes from sailing. To be a good sailor, one must know how to tie and use the ropes and sails. If you are good at something, you know the ropes!