whoami and id shows your effective UID name
who am i shows your real UID name
For example:
You login as user bob. So your real UID name is bob.
You then su to susan. So your effective UID name is susan
whoami and id will show you as susan
who am i will show you as bob
阅读(1907) | 评论(0) | 转发(0) |