linux - what is the difference between TTY and GNOME terminal -
operating system ubuntu, debian having gnome terminal real time usage. but, @ same time ctrl+alt+f2 shows terminal full fledged cui. if tty command executed in gnome terminal, shows output /dev/pts/3,4 etc. but, in cui environment shows "/dev/tty2". so, difference between these terminals.
this stems way when had number of fixed screens attached unix box. these had /dev/tty1
,2
,... device file number known beforehand , allocation of physical device vs. device file fixed.
when dialed in machine or had remote connections, "terminal" allocated dynamically , called "pseudo-terminals", hence device file /dev/pts/3
,4
... have own folder because there can many , clutter /dev
directory if in there. number can vary according number of connections , device number can recycled.
the /dev/ttyn
still there "default" terminals can access using ctrl-alt-f2 etc.
by way name tty
comes era before terminals, , stems "tele typewriter", see https://en.wikipedia.org/wiki/teleprinter
Comments
Post a Comment