devpts

Gerard Beekmans gerard at linuxfromscratch.org
Mon Nov 13 08:17:13 PST 2000


On November 10, 2000 11:05 am, you wrote:
> Most applications will use it automatically.  The kernel dynamically
> allocates device nodes as needed.
>
> veldy    pts/0    Nov 10 10:00

Let me elaborate a bit more:
gerard:~$ w
 11:15am  up 8 days, 11:48,  4 users,  load average: 0.00, 0.06, 0.04
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU  WHAT
gerard   tty1     -                 4Nov 0  8days 22.25s  0.01s  /bin/sh 
/usr/X1
gerard   pts/2    :0.0             Sun10am 55:30   1.03s  0.99s  ssh -x lfs2 
gerard   pts/3    :0.0             11:15am  0.00s  0.05s  0.02s  w 
gerard   pts/4    :0.0             10:19am 56:26   0.03s  0.03s  bash 

gerard:~$ ls /dev/pts
...  ..  0  1  2  3  4

when i open another xterm, 'w' shows me a pts/5 and voila, /dev/pts contains 
'5'

The old way before devpts you used ttyp1 ttyp2 ttyp3 and so forth. There is a 
limit to those static files. Normally you don't reach the maximum (unless you 
open hundreds of xterms, have tons of users connected to your system and so 
forth) but it's cleaner this way. It doesn't pollute your /dev directory 
since you can remove all the ttyp* files



-- 
Gerard Beekmans
www.linuxfromscratch.org

-*- If Linux doesn't have the solution, you have the wrong problem -*-

-- 
Unsubscribe: send email to lfs-apps-request at linuxfromscratch.org
and put unsubscribe in the subject header of the message




More information about the blfs-support mailing list