Remember command
Using this command allows you to recall the last few steps you have taken to arrive at your current location. By default, characters can remember the previous 3 steps, though certain spells, guilds and registration items can increase this number.
Remembering is not perfect, however, and traveling in any means other than normal walking around may interfere with your automatic path memorization. Some features of the game may interfere with this as well, such as secret entrances, and area effects which move you around. Mounting and dismounting horses and other vehicles also disrupts your character's remember history. Though, your mount can remember and convey to you what it remembers about its recent travels. Though, your own personal bonuses will not apply.
Usage
remember
mount remember - while mounted