What does TTY mean in the unix ps command?

前端 未结 2 1738
醉梦人生
醉梦人生 2021-02-03 21:49

When I run PS one of the columns output is TTY. What does this mean? In particular, how does as value of \"??\" compare with \"ttys000\"?

I ask because I have a Java p

2条回答
  •  遇见更好的自我
    2021-02-03 22:11

    A process can be (and usually is) bound to a "controlling terminal". This terminal may be hardware at the end of a serial line, or much more likely today, be a virtual software equivalent. The TTY is inherited from the parent process. Most likely your IDE disassociates itself from its TTY, and when started outside your java program inherits your shell's TTY.

提交回复
热议问题