Usage patterns
廊下を歩くto walk along the corridor
Please walk quietly along the corridor.
廊下を走るto run in the corridor (often used in warnings not to)
You mustn't run in the school corridor.
廊下に立つto stand in the hallway (often as a punishment or while waiting)
I got scolded by the teacher and made to stand in the hallway.
廊下で〈人〉に会うto run into someone in the corridor
I ran into my teacher in the hallway and greeted her.