Clearify what it means under 'WHAT' when hit the 'w'-command

I wonder how I shall read the result below, especially 'what'
shown below.

The result was shown when I entered 'w'.

E.g what is TOP? What is gosh ( what does selmgr mean?)?

login@  idle   JCPU   PCPU  what

6:15am 7:04 39 39 TOP
6:34am 6:45 45 45 TOP
6:41am 6:39 29 29 gosh /usr/G11R6.1/bin/../bin/selmgr

Typically, "What" is what the user is curently doing, if anything. TOP must be some sort of application (are you sure it wasn't 'top'?), as would "gosh". The lines after it are probably command-line options given to the program. See if wither one has a man page to learn about it. Try "man gosh".