On Linux: Normally pseudo terminals are allocated one after the other.
Today I realized that even after a reboot of my laptop the first opened
terminal window (which was always
pts/0 earlier) suddenly became
This was weird and made me curious. I wanted to find out which process is occupying the device
/dev/pts/0 and had no luck using common tools like
lsof or even
ps as suggested in the comment:
pf@pfmaster-P170EM:pts/6 /var/log 1115> ps auxww | grep pts/0 pf 7042 0.0 0.0 17208 964 pts/6 S+ 12:32 0:00 grep --color=auto pts/0
What I'm missing here? Possibly infected by a rookit?