[Li|U]nix: how to get your uid

Self-tutoring about using Linux: the tutor mentions a way to find your own uid.

  1. Set a task going such as sleep 360 &
  2. & in the command above puts it to the background so you can still run the terminal.
  3. ps -l will tell you the processes running with their names. Likely the sleep one is owned by you, so the uid listed with it is likely yours.

Source:

Engineer Man, youtube

Jack of Oracle Tutoring by Jack and Diane, Campbell River, BC.

Leave a Reply