Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

On executing 'echo $UID' in terminal, the output is:

  • 0 for root user
  • 1000 for admin(in my case)
  • 119 for guest user.

How are these values generated?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

For computer, uid is the only way to identify a user, since usernames are a convenience for humans. Most linux distros start generatiing uid for local users at 1000, and the highest available uid is 65535. In general, uid below 500 is reserved for system account, 0 is typically reserved for the user root. Hope it helps.

check the following files, you may get an overview of your accounts/password properties,



share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.