[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dev pts mystery



Henrique de Moraes Holschuh <hmh@debian.org> writes:

>On Mon, 03 Sep 2012, songbird wrote:
>>   somehow (i can't say what happened or i'd
>> have the answer), now it looks like:
>> 
>> crw--w---- 1 me   tty  136, 0 Sep  3 20:05 0
>> crw--w---- 1 me   tty  136, 1 Sep  3 20:10 1
>> crw--w---- 1 root tty  136, 2 Sep  4  2012 2
>> crw--w---- 1 me   tty  136, 3 Sep  3 20:05 3
>> crw--w---- 1 me   tty  136, 4 Sep  3 20:05 4
>> c--------- 1 root root   5, 2 Sep  3 14:53 ptmx

>"ps auxwww | grep pts/2"  could tell you more about whatever has pts/2 open.

The "a" and "x" arguments to ps(1) select all processes. ps also has the
option to select processes by tty(and 3 w's does nothing more than 2):

$ ps uwwt pts/2



Reply to: