Applications such as an xterm or sshd simulate a terminal. This works
using 2 special files, a pseudo-tty master that the xterm/... writes to
and reads from and a pseudo-tty slave that the applications using the
simulated terminal (such as the bash running in the xterm) read from and
write to. Traditionally you had lots of /dev/files for these. The masters
are called ptyp0, ptyp1,... and the slaves are called ttyp0, ttyp1,....
These files make up a significant portion of your /dev tree if......
阅读全文