The phrase is informal, best used in casual conversations or among friends. During the road trip, when Dave started singing loudly, his friends said, 'Dave, put a sock in it!'
Pro Tip 2/3
Potentially Rude
It can be seen as rude or impolite, so know your audience before using it. Jenny told her annoying brother to put a sock in it, which upset him.
Pro Tip 3/3
Humorous Tone
Sometimes used humorously to lighten the mood when asking for silence. The teacher jokingly said, 'Alright class, time to put a sock in it and focus!'