Get PID by Window

less than 1 minute read

Get the PID of a process by it’s window:

$ xprop | awk '/PID/ {print $3}'

This will change your mouse cursor to a cross. Click on the window and get the PID printed on the terminal.

Categories: ,

Updated:

Leave a Comment