You can start with the POSIX spec. From there, read about the "controlling terminal" of a process.
But just for example... /dev/tty is how a command like "ssh" can read your password even if its standard input comes from somewhere else:
tar cf - . | ssh dest 'tar xf -'
If ssh decides to prompt you for a password, it will read it from /dev/tty instead of stdin.
Conceptually, /dev/tty is "the keyboard and text terminal". More or less.
/dev/tty is how a command like "ssh" can read your password even if its standard input comes from somewhere else
Gain unlimited access to on-demand training courses with an Experts Exchange subscription.Get Access
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE
Connect with Certified Experts to gain insight and support on specific technology challenges including: