ITPub博客

首页 > Linux操作系统 > Linux操作系统 > linux changing identities

linux changing identities

原创 Linux操作系统 作者:pyzwj 时间:2012-10-09 12:17:57 0 删除 编辑
su - creates new shell as other users用于用户之间的相互切换
su - :同时加载环境变量
su: 不加载环境变量
 
finding people
who:显示关于登陆到本地系统的所有当前用户的信息。格式:用户名 伪终端号 登陆时间 本地ip地址
who am i:只显示关于你真是用户ID的信息
whoami:只显示有效用户的登陆名称
 
[oracle@localhost ~]$ who
oracle   pts/1        2012-09-29 10:05 (192.168.72.1)
root     pts/4        2012-09-29 07:55 (192.168.72.1)
[oracle@localhost ~]$ whoami
oracle
[oracle@localhost ~]$ who am i
oracle   pts/1        2012-09-29 10:05 (192.168.72.1)
 

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/28194062/viewspace-745965/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2012-09-25

  • 博文量
    63
  • 访问量
    303324