How to get rid of these bugs?
That's a silverfish. They're harmless to people and they won't do any structural damage to your home, but they do like to eat starch, cellulose, carbs; they'll do damage to wallpaper, book bindings, clothing, that kind of stuff. They like to eat mold and fungi too, and they tend to live in dark, moist / damp places.

As with any pest if you search around on the internet you can find a zillion suggestions for getting rid of them, some more successful than others.

Large infestations usually require an exterminator (if you find them problematic). But for small ones there are various things you can try first. This article on WikiHow has a number of suggestions, too many to reproduce here. Here is another decent article, although it's fairly clear that the author really despises these bugs.