There are many expressions commonly used in English to express similarity.
There is no magic rule to help you remember them. You just have to learn them. Sorry!
Take a look at the examples below.
Like the back of one’s hand.
If you know something like the back of your hand, you know it in great detail and are very familiar with it.
E.g. I know this city like the back of my hand. I’ve lived here all my life.
Like a bat out of hell.
If something or someone moves like a bat out of hell, they move extremely quickly (and perhaps suddenly or abruptly).
E.g. The tyres squealed as he pulled away from the curb and sped like a bat out of hell down the road.
Have fun learning English!
Louise