I've used dscl before, but since I use it at most once a year, I already forgot about it. It's time to write it down ... maybe it'll stick in my mind for longer this way.
To look up a user by UID:
dscl . -search /Users UniqueID [uid number]
To read a users properties/attributes (like HOME dir, shell, etc.):
Recent comments
2 years 15 weeks ago
3 years 36 weeks ago
3 years 36 weeks ago
3 years 38 weeks ago
3 years 39 weeks ago
3 years 46 weeks ago
3 years 46 weeks ago
3 years 46 weeks ago
3 years 46 weeks ago
3 years 47 weeks ago