how do they check your cervix?

This is probably a dumb question but my doctor said he is going to start checking my cervix for dilation/effacement next week. I should’ve asked at my appointment today about it but I’m curious how it’s done and if it hurts at all?