Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-01-2005, 02:34 PM   #1
Registered: Mar 2005
Posts: 49

Rep: Reputation: 15
Red face Can someone explain tty and pty for me?

Trying to google it and I really haven't gained a complete understanding of the concept... Its pretty bad since I have been using solaris and various linux for years now and I dont quite seem to under stand the fundamentals some time? Can anyone explain those two thing for me or anything else I might have missed that I need to have a understanding for?
Old 03-01-2005, 04:15 PM   #2
Senior Member
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
tty is a 'real' terminal on the console, that is the ones you see when when you do a [ctrl]+[alt]+[Fn]

pty is a 'psuedo' terminal. You would be using one of these in a console session inside say, Eterm or Konsole

At least this is my understanding, but of course I could be wrong
Old 03-01-2005, 07:59 PM   #3
Senior Member
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
yes what bulliver has said is correct
tty stands for teletype machine
i think in the old days there used to be a teletype machine hooked directly via a serial connection
to the mainframe and this was the controlling terminal for job controll
then lots of other people would log in via modem over other teletype machines (ptty)
tty is a real controlling device like your text terminal and keyboard
you see a bunch of real device nodes in dev called tty
however ptys live in a folder called /dev/pts
and in there are just a bunch of numbers that come and go dynamcally
this is a special mounted filesystem handled by the kernel alot like /proc and /sys
in there the kernel is using these pseudo device nodes as pipes to connect remote logins from the network to processes on the computer
remember the x server is really a server accepting client connections
so your xterm is a remote teletype machine logging onto the system
just like remote users on the network accessing the shell via ssh or something


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vpn poptop - CTRL: PTY read or GRE write failed (pty,gre)=(5,6) dezeque Linux - Networking 9 08-26-2016 10:39 AM
poptop gre or PTY error deus1 Linux - Networking 1 06-07-2005 06:39 AM
Server refused to allocate pty. stderr is not a tty - where are you? gaslq Linux - General 5 08-09-2004 04:40 AM
change tty => system crashes (ati driver/tty resolution) mosca Debian 6 08-05-2004 07:37 AM
Monitoring pty/tty usage Paul_assheton Linux - Networking 1 01-27-2004 02:57 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:58 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration