I noticed many mentions of pty and tty in some open source projects, could someone tell me what do they mean and what is the difference between them?
I noticed many mentions of pty and tty in some open source projects, could
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
ttyoriginally meant "teletype" and"pty"means "pseudo-teletype".In UNIX,
/dev/tty*is any device that acts like a "teletype", i.e: a terminal. (Called teletype because that’s what we had for terminals in those benighted days.)A
ptyis a pseudotty, a device entry that acts like a terminal to the process reading and writing there, but is managed by something else. They first appeared (as I recall) for X Window and screen and the like, where you needed something that acted like a terminal but could be used from another program.