Basically, I'm looking for a better way to find out which particular tty number the GUI is running on for a certain user. So far, I'm able to accomplish this using the following (for illustration purposes, the target info being sought after is root's tty8):

Is there a better way to do this? Say, a command I haven't read about that exactly tells me which virtual terminal number X is using for a certain user? I know switching between virtual terminals can easily be accomplished using Ctrl+Alt+F# keyboard combo. But that's not what I'm looking for. Thank you for the assist.

o Give a man a fish and he will eat for a day. Teach him how to fish and he will eat for a lifetime!
o If an issue has been fixed, please edit your first post and add the word [SOLVED].

Thanks for replying. I considered the w command before, but the output wasn't any much different from the who command. For instance, the FROM field (3rd column) in w corresponds to the last field (5th column) in who. The w command also gave a few extras that I didn't need, that's why I settled with the who command before creating this thread.

I'm well aware of the implications of root, don't worry about it. I used it merely for illustration purposes.

o Give a man a fish and he will eat for a day. Teach him how to fish and he will eat for a lifetime!
o If an issue has been fixed, please edit your first post and add the word [SOLVED].