Thursday, May 9, 2024
 Popular · Latest · Hot · Upcoming
80
rated 0 times [  80] [ 0]  / answers: 1 / hits: 28646  / 2 Years ago, fri, december 17, 2021, 12:18:34

How I can tell a process image name (to run from terminal using sudo) showing on the Ubuntu UI?


More From » process

 Answers
0

Per your request on the other question, here is my answer again:




I'm sure there is a cleaner way of doing it, but for your second question you can try this:



   xprop _NET_WM_PID | sed 's/_NET_WM_PID(CARDINAL) = //' | ps `cat`


This will make your cursor a cross with which you can click on an open window. It will report the PID and command in the terminal you ran it in.



In general, xprop and xwininfo will provide you with a lot of information about an open window.




The "apostrophes" I used for surrounding cat are the ~ key on my keyboard without pressing shift. This should give you some more info on the subject:



Grave Accents and the backquote


[#38380] Saturday, December 18, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
cisccla

Total Points: 66
Total Questions: 134
Total Answers: 115

Location: Croatia
Member since Fri, Sep 11, 2020
4 Years ago
;