Millipedes are long (up to 4 inches), segmented, and have many legs. They are most easily identified by their long bodies and many legs.
The best way to get rid of millipedes is to eliminate their food sources by thoroughly cleaning your kitchen and bathroom. You can also use commercial fly traps or bait. If you have a severe infestation, you may need to call a professional exterminator.