How to find the User Id for a specific user in Linux

H

How Can We Help?

How to find the User Id for a specific user in Linux

  • Open a new Terminal Session if not already in the command line.
  • Enter the following command. Replace UNAME with the name of the user.
    id -u UNAME
  • This will output the User Id for the Username specified.

About the author

Ian Carnaghan

I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.

About Author

Ian Carnaghan

I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.

Follow Me