How can I easily locate dungeons with commands?

You can use /seed to get the seed of your world and use a dungeon finder program such as Chunkbase.