Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. root@localhost tests]# ps fauxww | grep -P [pt]t[ys]
  2. 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
  3. root 2569 0.0 0.0 2008 500 tty2 Ss+ 07:09 0:00 /sbin/mingetty /dev/tty2
  4. root 2571 0.0 0.0 2008 500 tty3 Ss+ 07:09 0:00 /sbin/mingetty /dev/tty3
  5. root 2573 0.0 0.0 2008 504 tty4 Ss+ 07:09 0:00 /sbin/mingetty /dev/tty4
  6. root 2575 0.0 0.0 2008 500 tty5 Ss+ 07:09 0:00 /sbin/mingetty /dev/tty5
  7. root 2577 0.0 0.0 2008 504 tty6 Ss+ 07:09 0:00 /sbin/mingetty /dev/tty6
  8. 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
  9. sin 3377 0.0 0.0 2076 620 ? S 07:13 0:00 _ gnome-pty-helper
  10. sin 3378 0.0 0.0 5236 1712 pts/0 Ss 07:13 0:00 _ /bin/bash
  11. root 4054 0.0 0.0 5124 1676 pts/0 S 07:23 0:00 | _ bash
  12. root 5034 0.0 0.0 5056 1092 pts/0 R+ 08:03 0:00 | _ ps fauxww
  13. root 5035 0.0 0.0 4416 740 pts/0 S+ 08:03 0:00 | _ grep -P [pt]t[ys]
  14. sin 4154 0.0 0.0 5236 1708 pts/1 Ss 07:23 0:00 _ /bin/bash
  15. sin 4485 0.0 0.0 7252 3500 pts/1 S+ 07:41 0:00 _ python
  16.  
  17. [root@localhost tests]# ps fauxww | grep terminator
  18. sin 3374 0.2 0.7 90668 28564 ? Sl 07:13 0:08 /usr/bin/python /usr/bin/terminator
  19. [root@localhost tests]# lsof -p 3374 | grep '[pt]t[ys]'
  20. /usr/bin/ 3374 sin 17u CHR 136,0 0t0 3 /dev/pts/0
  21. /usr/bin/ 3374 sin 25u CHR 136,1 0t0 4 /dev/pts/1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement