/dev/consoleis a virtual set of devices which can be set as a parameter at boot time. It might be redirected to a serial device or a virtual console and by default points to/dev/tty0. When multipleconsole=options are passed to the kernel, the console output will go to more than one device./dev/tty0is the current virtual console/dev/tty[1-x]is one of the virtual consoles you switch to with control-alt-F1 and so on./dev/ttyis kind of an alias to the console (physical, virtual or pseudo device, if any) associated to the process that open it. Unlike the other devices, you do not need root privileges to write to it. Note also that processes like the ones launched bycronand similar batch processes have no usable/dev/tty, as they aren't associated with any. These processes have a?in theTTYcolumn ofps -efoutput.
jlliagre
- 62.5k
- 11
- 124
- 162