id - print the uid and gid
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. Under Minix-vmd the supplementary group IDs are also printed.
getuid(2), getgid(2), getgroups(2).