×
Jinxia Li

Console>tty>shell>command

No Comments

Console is the keyboard and display

Terminal window, which is a software emulation of a teletype (TTY).

The use of 0,1,2 for stdin/stdout/stderr is just a shell convention as by default an “open” system call will return the first unused descriptor as the one to be used.

tty is usually the one opened by login 

Difference between /dev/console, /dev/tty, and /dev/tty0

https://www.baeldung.com/linux/monitor-keyboard-drivers

https://flylib.com/books/en/2.673.1.128/1/

https://apple.stackexchange.com/questions/368044/do-terminal-ttys-for-ios-and-macos-exist

https://www.howtogeek.com/428174/what-is-a-tty-on-linux-and-how-to-use-the-tty-command/

https://www.quora.com/How-does-the-Linux-kernel-distinguish-between-the-stdin-stdout-stderr-of-each-process

Leave a Comment

Your email address will not be published. Required fields are marked *

By commenting you accept the Privacy Policy