Gentoo Archives: gentoo-user

From: Stefan Schulte <stefan.schulte@×××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] /dev full of pty* & tty* - is it normal?
Date: Tue, 26 Jan 2010 19:29:44
Message-Id: 20100126192859.GB2073@nebukadnezar.matrix.de
In Reply to: Re: [gentoo-user] /dev full of pty* & tty* - is it normal? by Alex Schuster
1 Looks different on my machine:
2
3 # ls -l /dev/pty* | wc -l
4 zsh: no matches found: /dev/pty*
5 0
6 # ls -l /dev/tty* | wc -l
7 65
8
9 It may have something to do with your kernel settings.
10 Device Drivers->Character devices->Unix98 PTY support is enabled
11 Device Drivers->Character devices->Legacy (BSD) PTY support is disabled
12 here
13
14 -Stefan
15
16 On Tue, Jan 26, 2010 at 06:57:33PM +0100, Alex Schuster wrote:
17 > Jarry writes:
18 >
19 > > I just noticed I have *a lot of* tty/pty files in dev:
20 > >
21 > > obelix ~ # ls -l /dev/pty* | wc -l
22 > > 256
23 > > obelix ~ # ls -l /dev/tty* | wc -l
24 > > 325
25 > >
26 > > They have names from /dev/ptya0 till /dev/ptyzf, then
27 > > pty0-pty63, and ttya0-ttyzf. Is this normal? I thought
28 > > udev creates device-files as they are needed, so I'm
29 > > surprised to see so much of them...
30 >
31 > Seems to be normal, I get the same output on two of my Gentoo machines.
32 >
33 > Wonko
34 >