Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@localhost tests]# ps fauxww | grep -P [pt]t[ys]
- root 2604 2.3 0.8 50728 34576 tty1 Ss+ 07:09 1:15 _ /usr/bin/Xorg :0 -br -verbose -audit 4 -auth /var/run/gdm/auth-for-gdm-VRHaoJ/database -nolisten tcp vt1
- root 2569 0.0 0.0 2008 500 tty2 Ss+ 07:09 0:00 /sbin/mingetty /dev/tty2
- root 2571 0.0 0.0 2008 500 tty3 Ss+ 07:09 0:00 /sbin/mingetty /dev/tty3
- root 2573 0.0 0.0 2008 504 tty4 Ss+ 07:09 0:00 /sbin/mingetty /dev/tty4
- root 2575 0.0 0.0 2008 500 tty5 Ss+ 07:09 0:00 /sbin/mingetty /dev/tty5
- root 2577 0.0 0.0 2008 504 tty6 Ss+ 07:09 0:00 /sbin/mingetty /dev/tty6
- sin 3374 0.2 0.7 90668 28564 ? Sl 07:13 0:09 /usr/bin/python /usr/bin/terminator <<< Added this parent of 3377 manually to see the pts source
- sin 3377 0.0 0.0 2076 620 ? S 07:13 0:00 _ gnome-pty-helper
- sin 3378 0.0 0.0 5236 1712 pts/0 Ss 07:13 0:00 _ /bin/bash
- root 4054 0.0 0.0 5124 1676 pts/0 S 07:23 0:00 | _ bash
- root 5034 0.0 0.0 5056 1092 pts/0 R+ 08:03 0:00 | _ ps fauxww
- root 5035 0.0 0.0 4416 740 pts/0 S+ 08:03 0:00 | _ grep -P [pt]t[ys]
- sin 4154 0.0 0.0 5236 1708 pts/1 Ss 07:23 0:00 _ /bin/bash
- sin 4485 0.0 0.0 7252 3500 pts/1 S+ 07:41 0:00 _ python
- [root@localhost tests]# ps fauxww | grep terminator
- sin 3374 0.2 0.7 90668 28564 ? Sl 07:13 0:08 /usr/bin/python /usr/bin/terminator
- [root@localhost tests]# lsof -p 3374 | grep '[pt]t[ys]'
- /usr/bin/ 3374 sin 17u CHR 136,0 0t0 3 /dev/pts/0
- /usr/bin/ 3374 sin 25u CHR 136,1 0t0 4 /dev/pts/1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement