标签:
1 #include <sys/types.h> 2 #include <unistd.h> 3 #include <stdlib.h> 4 #include <stdio.h> 5 int main() 6 { 7 printf("uid:%d,gid:%d\n",getuid(),getgid()); 8 exit(0); 9 }
user -x userid
原文地址:http://www.cnblogs.com/pencil-zh/p/4508073.html