#tip linux

To see the current session information on linux, use the w.
$ w
08:34:28 up 18 min, 2 users, load average: 1.43, 1.27, 0.91
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
kgthegre tty7 :0 08:16 ? 35.57s 0.08s gnome-session
kgthegre pts/0 :0.0 08:34 0.00s 0.36s 0.02s w

Advertisements