1832962 Members
3241 Online
110048 Solutions
New Discussion

top command help

 
1a
Advisor

top command help

lease find the below top command output,

 

top

CPU TTY     PID USERNAME PRI NI   SIZE    RES STATE    TIME %WCPU  %CPU COMMAND
 4 pts/tg 12307 mat   152 20  1576M  1012M run     31:56 100.37 100.19 java
 2 pts/tg 12380 mat   152 24  1787M  1440M run     11:36 38.45 38.38 java

 

in above example what is TTY  and pts/tg indicated what

3 REPLIES 3
g3jza
Esteemed Contributor

Re: top command help

Hi,
TTY is the name/type of the terminal from which the process comes.

pts/tg should be the terminal of user session
1a
Advisor

Re: top command help

please explain pts/tg is backround process or normal process

Dennis Handly
Acclaimed Contributor

Re: top command help

>explain pts/tg is background process or normal process

 

This is the tty device, in /dev/pts/tg.