What I understand is you wanted to know what is your current tty session.
For example, when you run w, your TTYs are pts/0 and 1
Code:
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
zf pts/0 192.168.200.100 16:41 0.00s 1.70s 0.48s sshd: zf [priv]
zf pts/1 192.168.200.100 16:45 6.00s 1.68s 0.48s sshd: zf [priv]
You can find out your current session by tty command, here we go.
Code:
root@digiage:~# tty
/dev/pts/0