This command works in both versions of the game, but as there is no visible console in KOTOR 2, it only has a use in KOTOR 1. It will print your current coordinates to the console.
The syntax for the whereami command is as follows:
Search our database of 37 KOTOR and KOTOR II commands...I'd Be Honored
Find below working examples of the whereami command.
This is the only way the whereami console command can be used - it will print to the console your current coordinates. As you can't see the console in KOTOR 2, this command only really has a use in KOTOR 1.