O comando who
imprime o nome do host inteiro.
~ $ who --version
who (GNU coreutils) 8.4
...
~ $ who
root tty1 2013-08-06 10:01
amp pts/0 2013-10-21 11:30 (entire.hostname)
rafael pts/4 2013-10-21 11:59 (entire.hostname)