How to find the user id – uid – for a user in Linux

 

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.


Posted

in

by