Get A Users UID On A Mac

July - 2021

Use this to pull a user's ID on a mac

id -u <username>

For example:

id -u alans

It'll return a number like:

501