Chinaunix首页 | 论坛 | 博客
  • 博客访问: 239330
  • 博文数量: 91
  • 博客积分: 2010
  • 博客等级: 大尉
  • 技术积分: 955
  • 用 户 组: 普通用户
  • 注册时间: 2007-08-12 09:38
文章分类

全部博文(91)

文章存档

2017年(1)

2011年(1)

2008年(15)

2007年(74)

我的朋友

分类: LINUX

2007-08-19 10:27:23

id(version redhat 9.0)
 syntax
 id options username
 description:
 pring a real and effective UIDs and GIDs
 frequence parameters
 -a all
 -g --group print a real effective GID
 -u --user pring only the effective UID
 -n --name print a name instead of a number
 -G, --groups print all group IDs (same as g)
 -r, --real print the real ID instead of the effective ID
 -u, --user print only the effective user ID
 --help display this help and exit exit
 --version output version information and exit
 
 example1:
  $id -g
  500
  $id -gn
  zhang
  $id -nu
  zhang
  $id -ru
  500
  $id -rg
  501
  $id -a ye
  uid=501(ye) gid=502(ye) groups=502(ye)
  $id ye
  uid=501(ye) gid=502(ye) groups=502(ye)
  $id -u ye
  501

阅读(321) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~