{"id":5446,"date":"2023-09-17T01:13:41","date_gmt":"2023-09-16T23:13:41","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=5446"},"modified":"2023-10-05T22:43:09","modified_gmt":"2023-10-05T20:43:09","slug":"ein-fenster-schliessen-ueber-das-terminal","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2023\/09\/17\/ein-fenster-schliessen-ueber-das-terminal\/","title":{"rendered":"Ein Fenster schliessen \u00fcber das Terminal"},"content":{"rendered":"<h3>Direkt \u00fcber den Programm-Namen mit pkill<\/h3>\n<p>Im Terminal eingeben:<\/p>\n<pre><code>pkill [Programmname]<\/code><\/pre>\n<h3>Direkt mit xkill<\/h3>\n<p>1. Im Terminal eingeben:<\/p>\n<p><code>xkill<\/code><\/p>\n<p>2. Der Cursor nimmt eine andere Form an, wird z.B. zum Totenkopf<br \/>\n3. Das zu schliessende Fenster anklicken<\/p>\n<p>Dazu kann man eine Tastenkombination anlegen, z.B. alt+x, dann muss man das Terminal nicht hervorholen.<br \/>\nIn Xfce unter Einstellungen &gt; Tastatur &gt; Tastenk\u00fcrzel f\u00fcr Anwendungen.<\/p>\n<h3>\u00dcber die Prozess-ID<\/h3>\n<p>1. Im Terminal eingeben:<\/p>\n<div class=\"codebox\">\n<pre><code>xprop | grep PID<\/code><\/pre>\n<\/div>\n<p>Der Cursor wird zum Kreuz.<\/p>\n<p>2. Dieses Kreuz zum Fenster f\u00fchren und dieses anklicken.<br \/>\nErgebnis im Terminal z.B.: _NET_WM_PID(CARDINAL) = 5077<br \/>\n5077 ist die Prozess-ID des Programms in diesem Beispiel hier.<\/p>\n<p>3. Im Terminal eingeben:<\/p>\n<div class=\"codebox\">\n<pre><code>kill 5077<\/code><\/pre>\n<\/div>\n<h3><strong class=\"text-strong\">\u00dcber den Prozess-Namen<\/strong><\/h3>\n<p>1. Im Terminal eingeben:<\/p>\n<div class=\"codebox\">\n<pre><code>xprop | grep WM_CLASS<\/code><\/pre>\n<\/div>\n<p>Der Cursor wird zum Kreuz.<\/p>\n<p>2. Dieses Kreuz zum Fenster f\u00fchren und dieses anklicken.<br \/>\nErgebnis im Terminal z.B.: _WM_CLASS(STRING) = &#8222;zim&#8220;, &#8222;Zim&#8220;<br \/>\n&#8222;Zim&#8220; bzw. &#8222;zim&#8220; ist der Name des Programms in diesem Beispiel hier.<\/p>\n<p>3. Im Terminal eingeben:<\/p>\n<div class=\"codebox\">\n<pre><code>killall [Programmname] <\/code><\/pre>\n<\/div>\n<p>oder:<\/p>\n<div class=\"codebox\">\n<pre><code>killall [Programmname] -i<\/code><\/pre>\n<\/div>\n<p>(mit -i = R\u00fcckfrage)<\/p>\n<p>PS. Die Befehlszeile<\/p>\n<div class=\"codebox\">\n<pre><code>xprop | awk '\/PID\/ {print $3}' | xargs ps h -o pid,cmd<\/code><\/pre>\n<\/div>\n<p>ergibt (im Fall des obigen Beispiels): 5077 \/usr\/bin\/python2 \/usr\/bin\/zim<br \/>\nDa erf\u00e4hrt man also auf einen Schlag die Prozess-ID, den Programm-Namen und dass Zim ein Python-2-Programm ist.<\/p>\n<p>(Unter Mitwirkung von <span title=\"Mi 16. M\u00e4r 2022, 11:09\">evilware666<\/span>, Josefine, Josef_K<span title=\"Mi 16. M\u00e4r 2022, 11:09\">)<\/span><\/p>\n<div class=\"pld-like-dislike-wrap pld-custom\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir\" data-post-id=\"5446\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Hoch.png\" alt=\"Gef\u00e4llt mir\" \/>\r\n            <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">1    <\/span>\r\n<\/div><div class=\"pld-dislike-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-dislike-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir nicht\" data-post-id=\"5446\" data-trigger-type=\"dislike\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Runter.png\" alt=\"Gef\u00e4llt mir nicht\" \/>\r\n            <\/a>\r\n    <span class=\"pld-dislike-count-wrap pld-count-wrap\"><\/span>\r\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Direkt \u00fcber den Programm-Namen mit pkill Im Terminal eingeben: pkill [Programmname] Direkt mit xkill 1. Im Terminal eingeben: xkill 2. Der Cursor nimmt eine andere Form an, wird z.B. zum Totenkopf 3. Das zu schliessende Fenster anklicken Dazu kann man eine Tastenkombination anlegen, z.B. alt+x, dann muss man das Terminal nicht hervorholen. In Xfce unter [&hellip;]<\/p>\n","protected":false},"author":18,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[577],"class_list":["post-5446","post","type-post","status-publish","format-standard","hentry","category-terminal","tag-fenster"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/5446","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/comments?post=5446"}],"version-history":[{"count":10,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/5446\/revisions"}],"predecessor-version":[{"id":5768,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/5446\/revisions\/5768"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=5446"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=5446"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=5446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}