difference between tty and pts
What is the difference between /dev/tty and /dev/pts ??
I google a lot but didn't understand...... Thanks in advance |
/dev/pts --> it shows that you are in virtual terminal, when you ssh a server remotely..it is in pts
/dev/tty --> if it's in true tty |
Quote:
If you want to know what terminal you're on, you can use the tty command. ;) |
tty = hardwired terminal on a serial connection.
pts (a/k/a pty) is a pseudo-tty to emulate terminals on network connections. |
Not Clear
These answer are quite confusing. Is tty some software or hardware component ?????
using who command gives the following output... Code:
_Linux_Learner tty7 2010-03-18 17:32 (:0) Please elaborate. Thanks in advance |
Quote:
"pty"s are pseudo "tty"s that are not associated with actual hardware, as used by "terminal emulator" software such as X's xterm and Windows' HyperTerm. |
Quote:
|
Got Something
Hi catkin
Thanks for your valuable help. I got the meaning of this tty. Now I want to know that why there are so many tty (tty1, tty2, tty3.......so on). Do they have some restricted access levels etc.... Regards _Linux_Learner |
Quote:
But of course, if you have X11 (which most big distros do now), then you can do the same thing with virtual terminals within the graphical environment. |
Quote:
Your question is valid and you are in good company; the designers of Slackware didn't think there was any point in having so many when running a graphical screen so by default it comes with only two in graphical mode -- tty6 and tty7. |
Quote:
|
All times are GMT -5. The time now is 01:12 PM. |