Easy way to get process from windowHow to identify and kill hanging process, when system hangs and reacts slowly on user input?How to get rid of Transmission zombie process?Identify package by window?Moving a maximized window between monitors without shrinking itBrowser-process using high CPUProcess(application) is active but is not shown anywhere on the desktop. How to open its window?Different colors for active/inactive Unity window title bars?Maximize window over two displays (Ubuntu 18.04)Cannot tile the “Files” window to the left or right side by pressing Super + Left/Right keys very oftenUbuntu 18.04: How to not move background window when window with focus is moved

Was Donald Trump at ground zero helping out on 9-11?

Creating a new Dataset column using a map from a second Dataset

Exploiting the delay when a festival ticket is scanned

Why are we moving in circles with a tandem kayak?

How would a lunar colony attack Earth?

How did astronauts using rovers tell direction without compasses on the Moon?

How to efficiently shred a lot of cabbage?

May a hotel provide accommodation for fewer people than booked?

How can I convert a linear narrative into a branching narrative?

why there is no “error” term in survival analysis?

Just how much information should you share with a former client?

Should 2FA be enabled on service accounts?

Is it possible to tell if a child will turn into a Hag?

Should I put my name first, or last in the team members list

Efficiently finding furthest two nodes in a graph

Can machine learning learn a function like finding maximum from a list?

How can Paypal know my card is being used in another account?

Why would anyone ever invest in a cash-only etf?

Applications of pure mathematics in operations research

Can you continue the movement of a Bonus Action Dash granted by Expeditious Retreat if your Concentration is broken mid-move?

Prepare a user to perform an action before proceeding to the next step

Is it okay for me to decline a project on ethical grounds?

What is this kind of symbol meant to be?

How can a class have multiple methods without breaking the single responsibility principle



Easy way to get process from window


How to identify and kill hanging process, when system hangs and reacts slowly on user input?How to get rid of Transmission zombie process?Identify package by window?Moving a maximized window between monitors without shrinking itBrowser-process using high CPUProcess(application) is active but is not shown anywhere on the desktop. How to open its window?Different colors for active/inactive Unity window title bars?Maximize window over two displays (Ubuntu 18.04)Cannot tile the “Files” window to the left or right side by pressing Super + Left/Right keys very oftenUbuntu 18.04: How to not move background window when window with focus is moved






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








3















On Windows, I can use Process Explorer and drag its crosshairs to a window, then Process Explorer highlights the associated process.



On Ubuntu, I didn't find such a function on System Monitor. What's the easy way to get process from window?



I'm open to download an alternative process monitor or other tools.










share|improve this question






























    3















    On Windows, I can use Process Explorer and drag its crosshairs to a window, then Process Explorer highlights the associated process.



    On Ubuntu, I didn't find such a function on System Monitor. What's the easy way to get process from window?



    I'm open to download an alternative process monitor or other tools.










    share|improve this question


























      3












      3








      3


      1






      On Windows, I can use Process Explorer and drag its crosshairs to a window, then Process Explorer highlights the associated process.



      On Ubuntu, I didn't find such a function on System Monitor. What's the easy way to get process from window?



      I'm open to download an alternative process monitor or other tools.










      share|improve this question














      On Windows, I can use Process Explorer and drag its crosshairs to a window, then Process Explorer highlights the associated process.



      On Ubuntu, I didn't find such a function on System Monitor. What's the easy way to get process from window?



      I'm open to download an alternative process monitor or other tools.







      18.04 window process






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 8 hours ago









      GqqnbigGqqnbig

      2112 silver badges9 bronze badges




      2112 silver badges9 bronze badges























          2 Answers
          2






          active

          oldest

          votes


















          4














          If you can use Terminal, try this:



          xprop | grep WM_CLASS


          and your cursor should turn into cross allowing you to click on any window to get its process name. If you just need the PID, try:



          xprop | awk '/PID/ print $3'


          Hope this helps.






          share|improve this answer








          New contributor



          Abhishek Nair is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





















          • grep is not really necessary, you can give a property name as argument to show only that one, like xprop WM_CLASS directly. Note that especially the WM_CLASS does not have to be the same as the process executable, it can be an arbitrary value as set by the developer.

            – Byte Commander
            8 hours ago











          • It works like a charm, thanks.

            – Gqqnbig
            7 hours ago


















          3














          Using xprop is already mentioned in this other answer and probably the best solution.



          Another way might be to use wmctrl -lp to list all windows managed by your window manager together with their respective process IDs (PID) where possible:



          $ wmctrl -lp
          0x03a00002 0 1570 type40mark3 XdndCollectionWindowImp
          0x03a00003 0 1570 type40mark3 unity-launcher
          0x03a00004 0 1570 type40mark3 unity-panel
          0x03a00005 0 1570 type40mark3 unity-dash
          0x03a00006 0 1570 type40mark3 Hud
          0x02c0000a -1 302 type40mark3 Desktop
          0x08a00003 0 8861 type40mark3 18.04 - Easy way to get process from window - Ask Ubuntu - Mozilla Firefox
          0x08a00033 0 8861 type40mark3 Some other site in a different window - Mozilla Firefox
          0x0840b72c 0 20705 type40mark3 bytecommander@type40mark3: ~
          0x08800001 0 7389 type40mark3 New Tab - Chromium


          You could then use this PID to get more info about the process, e.g. with ps aux -q YOUR_PID_HERE:



          $ ps aux -q 20705
          USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
          bytecom+ 20705 0.0 0.2 676820 32268 ? Sl Jun28 1:58 /usr/lib/gnome-terminal/gnome-terminal-server





          share|improve this answer

























          • Thanks for sharing this command. I more like the other visual way. Sometimes a window doesn't have title bar or is boradless, I can't really tell from this list given by wmctrl.

            – Gqqnbig
            7 hours ago














          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1162509%2feasy-way-to-get-process-from-window%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          4














          If you can use Terminal, try this:



          xprop | grep WM_CLASS


          and your cursor should turn into cross allowing you to click on any window to get its process name. If you just need the PID, try:



          xprop | awk '/PID/ print $3'


          Hope this helps.






          share|improve this answer








          New contributor



          Abhishek Nair is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





















          • grep is not really necessary, you can give a property name as argument to show only that one, like xprop WM_CLASS directly. Note that especially the WM_CLASS does not have to be the same as the process executable, it can be an arbitrary value as set by the developer.

            – Byte Commander
            8 hours ago











          • It works like a charm, thanks.

            – Gqqnbig
            7 hours ago















          4














          If you can use Terminal, try this:



          xprop | grep WM_CLASS


          and your cursor should turn into cross allowing you to click on any window to get its process name. If you just need the PID, try:



          xprop | awk '/PID/ print $3'


          Hope this helps.






          share|improve this answer








          New contributor



          Abhishek Nair is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





















          • grep is not really necessary, you can give a property name as argument to show only that one, like xprop WM_CLASS directly. Note that especially the WM_CLASS does not have to be the same as the process executable, it can be an arbitrary value as set by the developer.

            – Byte Commander
            8 hours ago











          • It works like a charm, thanks.

            – Gqqnbig
            7 hours ago













          4












          4








          4







          If you can use Terminal, try this:



          xprop | grep WM_CLASS


          and your cursor should turn into cross allowing you to click on any window to get its process name. If you just need the PID, try:



          xprop | awk '/PID/ print $3'


          Hope this helps.






          share|improve this answer








          New contributor



          Abhishek Nair is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          If you can use Terminal, try this:



          xprop | grep WM_CLASS


          and your cursor should turn into cross allowing you to click on any window to get its process name. If you just need the PID, try:



          xprop | awk '/PID/ print $3'


          Hope this helps.







          share|improve this answer








          New contributor



          Abhishek Nair is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.








          share|improve this answer



          share|improve this answer






          New contributor



          Abhishek Nair is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.








          answered 8 hours ago









          Abhishek NairAbhishek Nair

          563 bronze badges




          563 bronze badges




          New contributor



          Abhishek Nair is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.




          New contributor




          Abhishek Nair is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.

















          • grep is not really necessary, you can give a property name as argument to show only that one, like xprop WM_CLASS directly. Note that especially the WM_CLASS does not have to be the same as the process executable, it can be an arbitrary value as set by the developer.

            – Byte Commander
            8 hours ago











          • It works like a charm, thanks.

            – Gqqnbig
            7 hours ago

















          • grep is not really necessary, you can give a property name as argument to show only that one, like xprop WM_CLASS directly. Note that especially the WM_CLASS does not have to be the same as the process executable, it can be an arbitrary value as set by the developer.

            – Byte Commander
            8 hours ago











          • It works like a charm, thanks.

            – Gqqnbig
            7 hours ago
















          grep is not really necessary, you can give a property name as argument to show only that one, like xprop WM_CLASS directly. Note that especially the WM_CLASS does not have to be the same as the process executable, it can be an arbitrary value as set by the developer.

          – Byte Commander
          8 hours ago





          grep is not really necessary, you can give a property name as argument to show only that one, like xprop WM_CLASS directly. Note that especially the WM_CLASS does not have to be the same as the process executable, it can be an arbitrary value as set by the developer.

          – Byte Commander
          8 hours ago













          It works like a charm, thanks.

          – Gqqnbig
          7 hours ago





          It works like a charm, thanks.

          – Gqqnbig
          7 hours ago













          3














          Using xprop is already mentioned in this other answer and probably the best solution.



          Another way might be to use wmctrl -lp to list all windows managed by your window manager together with their respective process IDs (PID) where possible:



          $ wmctrl -lp
          0x03a00002 0 1570 type40mark3 XdndCollectionWindowImp
          0x03a00003 0 1570 type40mark3 unity-launcher
          0x03a00004 0 1570 type40mark3 unity-panel
          0x03a00005 0 1570 type40mark3 unity-dash
          0x03a00006 0 1570 type40mark3 Hud
          0x02c0000a -1 302 type40mark3 Desktop
          0x08a00003 0 8861 type40mark3 18.04 - Easy way to get process from window - Ask Ubuntu - Mozilla Firefox
          0x08a00033 0 8861 type40mark3 Some other site in a different window - Mozilla Firefox
          0x0840b72c 0 20705 type40mark3 bytecommander@type40mark3: ~
          0x08800001 0 7389 type40mark3 New Tab - Chromium


          You could then use this PID to get more info about the process, e.g. with ps aux -q YOUR_PID_HERE:



          $ ps aux -q 20705
          USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
          bytecom+ 20705 0.0 0.2 676820 32268 ? Sl Jun28 1:58 /usr/lib/gnome-terminal/gnome-terminal-server





          share|improve this answer

























          • Thanks for sharing this command. I more like the other visual way. Sometimes a window doesn't have title bar or is boradless, I can't really tell from this list given by wmctrl.

            – Gqqnbig
            7 hours ago
















          3














          Using xprop is already mentioned in this other answer and probably the best solution.



          Another way might be to use wmctrl -lp to list all windows managed by your window manager together with their respective process IDs (PID) where possible:



          $ wmctrl -lp
          0x03a00002 0 1570 type40mark3 XdndCollectionWindowImp
          0x03a00003 0 1570 type40mark3 unity-launcher
          0x03a00004 0 1570 type40mark3 unity-panel
          0x03a00005 0 1570 type40mark3 unity-dash
          0x03a00006 0 1570 type40mark3 Hud
          0x02c0000a -1 302 type40mark3 Desktop
          0x08a00003 0 8861 type40mark3 18.04 - Easy way to get process from window - Ask Ubuntu - Mozilla Firefox
          0x08a00033 0 8861 type40mark3 Some other site in a different window - Mozilla Firefox
          0x0840b72c 0 20705 type40mark3 bytecommander@type40mark3: ~
          0x08800001 0 7389 type40mark3 New Tab - Chromium


          You could then use this PID to get more info about the process, e.g. with ps aux -q YOUR_PID_HERE:



          $ ps aux -q 20705
          USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
          bytecom+ 20705 0.0 0.2 676820 32268 ? Sl Jun28 1:58 /usr/lib/gnome-terminal/gnome-terminal-server





          share|improve this answer

























          • Thanks for sharing this command. I more like the other visual way. Sometimes a window doesn't have title bar or is boradless, I can't really tell from this list given by wmctrl.

            – Gqqnbig
            7 hours ago














          3












          3








          3







          Using xprop is already mentioned in this other answer and probably the best solution.



          Another way might be to use wmctrl -lp to list all windows managed by your window manager together with their respective process IDs (PID) where possible:



          $ wmctrl -lp
          0x03a00002 0 1570 type40mark3 XdndCollectionWindowImp
          0x03a00003 0 1570 type40mark3 unity-launcher
          0x03a00004 0 1570 type40mark3 unity-panel
          0x03a00005 0 1570 type40mark3 unity-dash
          0x03a00006 0 1570 type40mark3 Hud
          0x02c0000a -1 302 type40mark3 Desktop
          0x08a00003 0 8861 type40mark3 18.04 - Easy way to get process from window - Ask Ubuntu - Mozilla Firefox
          0x08a00033 0 8861 type40mark3 Some other site in a different window - Mozilla Firefox
          0x0840b72c 0 20705 type40mark3 bytecommander@type40mark3: ~
          0x08800001 0 7389 type40mark3 New Tab - Chromium


          You could then use this PID to get more info about the process, e.g. with ps aux -q YOUR_PID_HERE:



          $ ps aux -q 20705
          USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
          bytecom+ 20705 0.0 0.2 676820 32268 ? Sl Jun28 1:58 /usr/lib/gnome-terminal/gnome-terminal-server





          share|improve this answer













          Using xprop is already mentioned in this other answer and probably the best solution.



          Another way might be to use wmctrl -lp to list all windows managed by your window manager together with their respective process IDs (PID) where possible:



          $ wmctrl -lp
          0x03a00002 0 1570 type40mark3 XdndCollectionWindowImp
          0x03a00003 0 1570 type40mark3 unity-launcher
          0x03a00004 0 1570 type40mark3 unity-panel
          0x03a00005 0 1570 type40mark3 unity-dash
          0x03a00006 0 1570 type40mark3 Hud
          0x02c0000a -1 302 type40mark3 Desktop
          0x08a00003 0 8861 type40mark3 18.04 - Easy way to get process from window - Ask Ubuntu - Mozilla Firefox
          0x08a00033 0 8861 type40mark3 Some other site in a different window - Mozilla Firefox
          0x0840b72c 0 20705 type40mark3 bytecommander@type40mark3: ~
          0x08800001 0 7389 type40mark3 New Tab - Chromium


          You could then use this PID to get more info about the process, e.g. with ps aux -q YOUR_PID_HERE:



          $ ps aux -q 20705
          USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
          bytecom+ 20705 0.0 0.2 676820 32268 ? Sl Jun28 1:58 /usr/lib/gnome-terminal/gnome-terminal-server






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 8 hours ago









          Byte CommanderByte Commander

          70.6k27 gold badges193 silver badges324 bronze badges




          70.6k27 gold badges193 silver badges324 bronze badges















          • Thanks for sharing this command. I more like the other visual way. Sometimes a window doesn't have title bar or is boradless, I can't really tell from this list given by wmctrl.

            – Gqqnbig
            7 hours ago


















          • Thanks for sharing this command. I more like the other visual way. Sometimes a window doesn't have title bar or is boradless, I can't really tell from this list given by wmctrl.

            – Gqqnbig
            7 hours ago

















          Thanks for sharing this command. I more like the other visual way. Sometimes a window doesn't have title bar or is boradless, I can't really tell from this list given by wmctrl.

          – Gqqnbig
          7 hours ago






          Thanks for sharing this command. I more like the other visual way. Sometimes a window doesn't have title bar or is boradless, I can't really tell from this list given by wmctrl.

          – Gqqnbig
          7 hours ago


















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1162509%2feasy-way-to-get-process-from-window%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          ParseJSON using SSJSUsing AMPscript with SSJS ActivitiesHow to resubscribe a user in Marketing cloud using SSJS?Pulling Subscriber Status from Lists using SSJSRetrieving Emails using SSJSProblem in updating DE using SSJSUsing SSJS to send single email in Marketing CloudError adding EmailSendDefinition using SSJS

          Кампала Садржај Географија Географија Историја Становништво Привреда Партнерски градови Референце Спољашње везе Мени за навигацију0°11′ СГШ; 32°20′ ИГД / 0.18° СГШ; 32.34° ИГД / 0.18; 32.340°11′ СГШ; 32°20′ ИГД / 0.18° СГШ; 32.34° ИГД / 0.18; 32.34МедијиПодациЗванични веб-сајту

          19. јануар Садржај Догађаји Рођења Смрти Празници и дани сећања Види још Референце Мени за навигацијуу