No,I am looking for the command 'who' with two arguments. The command 'whoami' prints only the user name. However, I want the tty and the time stamp too. As per the man page of 'who':
"If ARG1 ARG2 given, -m presumed: 'am i' or 'mom likes' are usual." "-m only hostname and user associated with stdin" So, 'who am i' is what I need. However, my question was a little different. When 'who am i' is producing output in gnome-terminal, why isn't it doing so in 'mrxvt' ? On Fri, Jan 23, 2009 at 8:52 PM, subscriptions <subscripti...@rdegraaf.nl> wrote: > On Fri, 2009-01-23 at 21:44 +0100, Countable Infinity wrote: >> 'who am i' produces the following output in gnome-terminal: >> >> hum...@nifty:~$ who am i >> humpty pts/2 2009-01-24 02:12 (:0.0) >> >> However, in mrxvt, it does not produce any output. >> >> hum...@nifty:~$ who am i >> hum...@nifty:~$ >> >> What could be the reason for this? Is this a bug? > > :) You did the command 'who' with parameters 'am' and 'i'. > > The command you are looking for is 'whoami'. > > Best, > > Rob > > > -- > To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org > > -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org