'who am i' when used on terminal displays nothing but not terminator please explain screenshots uploaded
1 Answer
The fact that who -m
(or equivalently who am i
) does not work in gnome-terminal is due to a bug (or some would say a feature) in gnome-terminal. Specifically, gnome-terminal fails to write an appropriate entry to /var/run/utmp
, which is what /usr/bin/who
looks at. The people in charge of gnome-terminal decided, perhaps for good reasons or bad ones, not to support this feature any more. See their discussion here: https://bugzilla.gnome.org/show_bug.cgi?id=747046
utmp
log and the other doesn't... possibly related Bug 747046 - cleanup pty.cgnome-terminal
not runningwhoami
orwho am i
and that is where I found out that they are not going to fix thegnome-terminal
not showing those commands. However, from my understanding if you installscreen
orbyobu
and run those in thegnome-terminal
,whoami
,w
andwho am i
all work fine. The bug: bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/1747198who am i
works