Command: id - print the uid and gid Syntax: id Flags: (none) Example: id # Print the uid and gid Id prints the current uid and gid, both numerically and symbolically. If the effective uid and gid are different from the real ones, all of them are printed.