search

Home  >  Q&A  >  body text

process - linux 每个进程都属于某一个tty吗

linux 每个进程都属于某一个tty吗?

进程的控制终端 是什么玩意?

伊谢尔伦伊谢尔伦2836 days ago549

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-04-17 14:49:52

    No, tty is just a human-computer interaction device. Processes that do not require human-computer interaction do not need to be associated with a tty.
    For example, init does not have a dedicated tty.
    You can try ps -e | less
    You can observe that there are quite a lot of processes without dedicated tty.

    reply
    0
  • Cancelreply