This one is straight-forward for CentOS, Ubuntu and others distros:
id -u [username]
e.g.
id -u bob
That will give a numeric result like 500 or 1001.
This one is straight-forward for CentOS, Ubuntu and others distros:
id -u [username]
e.g.
id -u bob
That will give a numeric result like 500 or 1001.