Cock of the...

There is a saying for someone who thinks they own the place, I thought it was 'cock of the yard' in reference to a rooster, but I've been told that it isn't right!

Does anyone know what the correct saying is?

["Cock of the walk" - B.]