In Linux system, each user is identified by unique identifier known as user ID or UID. It is used to determine which system resources the user can access. This tutorial shows how to get user ID (UID) in Linux.
In order to get UID of a current user, run the
id command with
Provide username as argument to get UID of a specific user:
id -u james