Get your numerical user id

This is part of the Semicolon&Sons Code Diary - consisting of lessons learned on the job. You're in the unix category.

Last Updated: 2022-05-26

echo $UID

Useful for when the numerical id is needed instead of the username.