This connector type is commonly used to connect a battery or as board to board connector
6 pin connector fits stepper motor port
Pigtail spares you need to crimp wires yourself, that requires both specialized tool and a practice.
10cm should fit most wire to board needs for a small project you can solder extension wire to it too.
This is just a plug with 10 centimeters of wire tinned on other end. No socket.