{"id":12297,"date":"2023-12-17T11:03:59","date_gmt":"2023-12-17T10:03:59","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=12297"},"modified":"2023-12-17T18:26:09","modified_gmt":"2023-12-17T17:26:09","slug":"linux-via-terminal-mit-gui-beenden-oder-neu-starten","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2023\/12\/17\/linux-via-terminal-mit-gui-beenden-oder-neu-starten\/","title":{"rendered":"Linux via Terminal \/ mit GUI beenden oder neu starten"},"content":{"rendered":"\n<p class=\"has-medium-font-size wp-block-paragraph\"><strong>Shutdown-Befehle f\u00fcrs Terminal<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Nachfolgend einige Beispiele um Linux sofort bzw. zeitgesteuert zu beenden oder neu zu starten.<br>Die aufgef\u00fchrten Befehle ben\u00f6tigen <a href=\"https:\/\/linux-bibel.at\/index.php\/2023\/09\/03\/sudo-und-su-administrator-unter-linux\/\" data-type=\"link\" data-id=\"https:\/\/linux-bibel.at\/index.php\/2023\/09\/03\/sudo-und-su-administrator-unter-linux\/\">Administratorrechte<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes has-small-font-size\"><table><tbody><tr><td><strong>Befehl<\/strong><\/td><td><strong>Wirkung<\/strong><\/td><\/tr><tr><td>shutdown -h<\/td><td>System f\u00e4hrt in der n\u00e4chsten Minute herunter<\/td><\/tr><tr><td>shutdown -h 0<\/td><td>System f\u00e4hrt sofort herunter<\/td><\/tr><tr><td>shutdown -r<\/td><td>System startet in der n\u00e4chsten Minute neu<\/td><\/tr><tr><td>shutdown -r 0<\/td><td>System startet sofort neu<\/td><\/tr><tr><td>Shutdown -c<\/td><td>Den Shutdown-Befehl abbrechen &#8211; sofern noch nicht in Ausf\u00fchrung<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Beispiel: <br>Mit   <strong><em>sudo shutdown -h<\/em><\/strong>    f\u00e4hrt Linux in wenigen Sekunden automatisch herunter.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/terminal_1.jpg\" rel=\"lightbox-0\"><img loading=\"lazy\" decoding=\"async\" width=\"715\" height=\"158\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/terminal_1.jpg\" alt=\"\" class=\"wp-image-12317\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/terminal_1.jpg 715w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/terminal_1-150x33.jpg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/terminal_1-300x66.jpg 300w\" sizes=\"auto, (max-width: 715px) 100vw, 715px\" \/><\/a><\/figure>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\"><strong>Linux zu einer bestimmten Zeit herunterfahren<\/strong> <strong>\/ neu starten<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Das System l\u00e4sst sich zu einer bestimmten Zeit oder nach einer bestimmten Anzahl an Minuten herunterfahren oder neu starten.<br>Die Zahlen 15 und 30 stehen hier f\u00fcr Minuten:<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes has-small-font-size\"><table><tbody><tr><td><strong>Befehl<\/strong><\/td><td><strong>Wirkung<\/strong><\/td><\/tr><tr><td>shutdown -h 15<\/td><td>Das System f\u00e4hrt in 15 Minuten herunterfahren<\/td><\/tr><tr><td>shutdown -h 23:15<\/td><td>Das System f\u00e4hrt um 23:15 Uhr herunter<\/td><\/tr><tr><td>shutdown -r 30<\/td><td>Das System  wird in 30 Minuten neu gestartet<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Anders als in Windows gibt die Zahl hinter dem jeweiligen Herunterfahren-Parameter unter Linux die Minuten an, nach denen der Befehl ausgef\u00fchrt werden soll \u2013 und nicht die Sekunden. <br>Alternativ kann auch gleich die konkrete Uhrzeit eingegeben werden, wann sich das System ausschalten soll. <br>Um einem bestimmten Zeitpunkt f\u00fcr einen Neustart zu w\u00e4hlen, erfordert den Parameter \u201e-r\u201c statt \u201e-h\u201c.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Beispiel:<br>Mit   <strong><em>sudo shutdown -h 23:15<\/em><\/strong>   wird Linux um 23:15 Uhr herunter gefahren.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/terminal_2.jpg\" rel=\"lightbox-1\"><img loading=\"lazy\" decoding=\"async\" width=\"668\" height=\"137\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/terminal_2.jpg\" alt=\"\" class=\"wp-image-12319\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/terminal_2.jpg 668w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/terminal_2-150x31.jpg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/terminal_2-300x62.jpg 300w\" sizes=\"auto, (max-width: 668px) 100vw, 668px\" \/><\/a><\/figure>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\"><strong>Grafische Benutzeroberfl\u00e4che als Alternative<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Insbesondere Linux-Einsteiger bevorzugen oftmals zu Beginn eine grafische Oberfl\u00e4che anstelle des Terminals. Auch das ist unter Linux m\u00f6glich.<br>Unter Debian und darauf basierende Distributionen installieren Sie das Tool im Terminal mit Eingabe von:<\/p>\n\n\n\n<pre class=\"wp-block-code has-medium-font-size\"><code>sudo apt install qshutdown<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Aufgerufen wird es z. B. unter KDE Plasma in der Rubrik &#8211;&gt; Dienstprogramme oder mit dem Suchbegriff:<\/p>\n\n\n\n<pre class=\"wp-block-code has-medium-font-size\"><code>qshutdown<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/gui-tool.jpg\" rel=\"lightbox-2\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"482\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/gui-tool-1024x482.jpg\" alt=\"\" class=\"wp-image-12321\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/gui-tool-1024x482.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/gui-tool-1536x723.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/gui-tool-150x71.jpg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/gui-tool-300x141.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/gui-tool-768x361.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/gui-tool.jpg 1545w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"has-text-align-center wp-block-paragraph\">qshutdown<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Mit dem Kalender bestimmen Sie, wann folgende Aktion ausgef\u00fchrt wird:<br>Herunterfahren, Neustart, Standby, Ruhezustand.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Der Countdown im Fenster zeigt dann an, wann es soweit ist.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u00dcber <strong><em>Datei<\/em><\/strong> &#8211; &gt; <strong><em>Reset<\/em><\/strong>  k\u00f6nnen Sie den Timer zur\u00fccksetzen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Alternativ nutzen Sie den Kalender, um einen bestimmten Tag auszuw\u00e4hlen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u00dcber <strong><em>Einstellungen<\/em><\/strong> -&gt; <strong><em>Konfigurieren<\/em><\/strong> kann das kleine Tool individuell angepasst werden (Schriftgr\u00f6\u00dfe, Vorgaben etc.)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Shutdown-Befehle f\u00fcrs Terminal Nachfolgend einige Beispiele um Linux sofort bzw. zeitgesteuert zu beenden oder neu zu starten.Die aufgef\u00fchrten Befehle ben\u00f6tigen Administratorrechte. Befehl Wirkung shutdown -h System f\u00e4hrt in der n\u00e4chsten Minute herunter shutdown -h 0 System f\u00e4hrt sofort herunter shutdown -r System startet in der n\u00e4chsten Minute neu shutdown -r 0 System startet sofort neu [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":12324,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,102],"tags":[754,755,757,756,356,758],"class_list":["post-12297","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-system","category-tipps-system","tag-herunterfahren","tag-neustarten","tag-qshutdown","tag-reboot","tag-shutdown","tag-zeitgesteuert"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/12297","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\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/comments?post=12297"}],"version-history":[{"count":14,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/12297\/revisions"}],"predecessor-version":[{"id":12371,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/12297\/revisions\/12371"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media\/12324"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=12297"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=12297"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=12297"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}