October 13, 2005

Inspired by a posting about who am i over at scripting news, I did a quick man read and playing around, only to be reminded of the humor sometimes buried in unix aliases and man pages.

who -m is the same as
who am i is the same as
who mom likes

(at least, on a debian sarge system - MacOSX 10.4.2 only supports the first two variants).

Each returns the current stdin user info of username, connected port/tty, and time of connection (and connected network address, if applicable).

whoami, the form I grew up with, appears to be a restricted subset that just returns the username for stdin.

Posted by esinclai at October 13, 2005 09:11 PM |
Post a comment

Email Address:



Remember info?