{"id":1302,"date":"2020-01-31T20:47:17","date_gmt":"2020-01-31T20:47:17","guid":{"rendered":"https:\/\/profi-tutorials.de\/linux\/?p=1302"},"modified":"2020-03-13T11:32:38","modified_gmt":"2020-03-13T11:32:38","slug":"befehle-systemkontrolle","status":"publish","type":"post","link":"https:\/\/profi-tutorials.de\/linux\/administration\/befehle-systemkontrolle\/","title":{"rendered":"Die 8 wichtigsten Befehle f\u00fcr die Systemkontrolle"},"content":{"rendered":"<p>Bei der Kontrolle von Linux-Systemen sollten Status von beispielsweise CPU, Arbeitsspeicher, Laufwerken und Prozessen eingesehen und &uuml;berpr&uuml;ft werden. F&uuml;r die Abfrage dieser Statusinformationen gibt es unter Linux einige wichtige Befehle, die im Folgenden einmal kurz erkl&auml;rt werden.<\/p>\n<h2 id=\"tab-con-12\">Befehle<\/h2>\n<h3 id=\"tab-con-6\">Administration von Systemressourcen und Prozessen<\/h3>\n<h4 id=\"tab-con-3\">top &ndash; Prozesse und Systemressourcen anzeigen<\/h4>\n<p>Mit dem <strong>top<\/strong> Befehl l&auml;sst sich eine dynamische Liste von Prozessen und Systemressourcen anzeigen. Optionen oder Parameter sind bei diesem Befehl nicht notwendig:<\/p>\n<pre>top [Optionen]<\/pre>\n<p>Eine ausf&uuml;hrliche Erkl&auml;rung zu den angezeigten Daten finden Sie in <a href=\"https:\/\/profi-tutorials.de\/linux\/administration\/befehl-top\/\" style=\"outline: none;\" target=\"_blank\" rel=\"noopener noreferrer\">unserem Beitrag zum Top Befehl<\/a>.<\/p>\n<h4 id=\"tab-con-0\">pstree &ndash; Prozess-Baum anzeigen<\/h4>\n<p>Mit dem Befehl <strong>pstree<\/strong> (process tree) lassen sich alle laufenden Prozesse als Baum anzeigen. Der Befehl kann ohne jegliche Optionen verwendet werden, die Wurzel des Baums ist dann der init Prozess. Optional kann jedoch auch eine pid angegeben werden, die den Wurzel-Prozess bestimmt, oder ein Benutzer, dessen Prozesse in dem Baum angezeigt werden sollen. Die <a class=\"glossaryLink cmtt_Allgemein cmtt_Informatik\" aria-describedby=\"tt\" data-cmtooltip=\"&lt;div class=glossaryItemTitle&gt;Syntax&lt;\/div&gt;&lt;div class=glossaryItemBody&gt;&#8203;Im  Allgemeinen wird unter Syntax ein Regel&#8203;system verstanden, welches zur  Kombination elementarer Zeichen zu zusammengesetzten &#8203;Zeichen in (...)&lt;\/div&gt;\" href=\"https:\/\/profi-tutorials.de\/linux\/glossar\/syntax\/\" target=\"_blank\" data-mobile-support=\"0\" data-gt-translate-attributes='[{\"attribute\":\"data-cmtooltip\", \"format\":\"html\"}]' tabindex=\"0\" role=\"link\">Syntax<\/a> des Befehls lautet:<\/p>\n<pre>pstree [Optionen]<\/pre>\n<h5>Beispiel: pstree mit pid<\/h5>\n<h6>Eingabe:<\/h6>\n<p>pstree 1410<\/p>\n<h6>Bedeutung:<\/h6>\n<p>Der ausgegebene Prozess-Baum hat den Prozess mit der pid 1410 als Wurzel..<\/p>\n<h5>Beispiel: pstree mit Benutzer<\/h5>\n<h6>Eingabe:<\/h6>\n<p>pstree hellberg<\/p>\n<h6>Bedeutung:<\/h6>\n<p>Alle Prozesse, die dem Benutzer &ldquo;hellberg&rdquo; geh&ouml;ren, werden als Baum ausgegeben.<\/p>\n<h3 id=\"tab-con-1\">Speicheradministration<\/h3>\n<h4>tree &ndash; Verzeichnishierarchie als Baum anzeigen<\/h4>\n<p>Mit tree kann die Verzeichnisstruktur des Systems hierarchisch als Baum angezeigt werden.<\/p>\n<pre>tree [Optionen]<\/pre>\n<p>Da tree standardm&auml;&szlig;ig nicht installiert ist, muss dies vor der Verwendung nachgeholt werden:<\/p>\n<pre>apt-get install tree<\/pre>\n<h4 id=\"tab-con-7\">df &ndash; freien Festplattenplatz anzeigen<\/h4>\n<p>Der Befehl <strong>df<\/strong> (disk free) gibt den freien Festplattenplatz der eingeh&auml;ngten Partitionen aus.<\/p>\n<pre>df [Optionen]<\/pre>\n<p>Durch Hinzuf&uuml;gen der Option <strong>-h<\/strong> (human readable) l&auml;sst sich der freie Speicher in einem besser lesbaren Format ausgeben (Kilobyte, Megabyte, Gigabyte etc.).<\/p>\n<h5>Beispiel: df -h<\/h5>\n<h6>Eingabe:<\/h6>\n<p>df -h<\/p>\n<h6>Ausgabe:<\/h6>\n<p><span><img loading=\"lazy\" decoding=\"async\" alt=\"Ausgabe des df Befehls\" data-id=\"1356\" width=\"700\" height=\"320\" title=\"df-ausgabe\" src=\"https:\/\/profi-tutorials.de\/linux\/wp-content\/uploads\/sites\/3\/2020\/01\/df-ausgabe.jpg\"\/><\/span><\/p>\n<h4 id=\"tab-con-9\">du &ndash; belegten Festplattenplatz anzeigen<\/h4>\n<p>Mit <strong>du<\/strong> (disk usage) wird der belegte Festplattenplatz der angegebenen Datei ausgegeben. In Verzeichnissen wird der Verbrauch <a class=\"glossaryLink cmtt_Informatik\" aria-describedby=\"tt\" data-cmtooltip=\"&lt;div class=glossaryItemTitle&gt;Rekursion&lt;\/div&gt;&lt;div class=glossaryItemBody&gt;Rekursion bezeichnet den abstrakten Vorgang, Regeln auf ein Produkt anzuwenden, die dieses Produkt selbst erzeugt haben.&lt;\/div&gt;\" href=\"https:\/\/profi-tutorials.de\/linux\/glossar\/rekursion\/\" target=\"_blank\" data-mobile-support=\"0\" data-gt-translate-attributes='[{\"attribute\":\"data-cmtooltip\", \"format\":\"html\"}]' tabindex=\"0\" role=\"link\">rekursiv<\/a> f&uuml;r die enthaltenen Dateien und Unterverzeichnisse berechnet.<\/p>\n<pre>du [Optionen] [Pfad]<\/pre>\n<p>Auch hier kann wieder die Option <strong>-h<\/strong> verwendet werden.<\/p>\n<h5>Beispiel: du -h<\/h5>\n<h6>Eingabe:<\/h6>\n<p>du -h<\/p>\n<h6>Ausgabe:<\/h6>\n<p><span><img loading=\"lazy\" decoding=\"async\" alt=\"Ausgabe des du Befehls\" data-id=\"1357\" width=\"550\" height=\"190\" title=\"du-ausgabe\" src=\"https:\/\/profi-tutorials.de\/linux\/wp-content\/uploads\/sites\/3\/2020\/01\/du-ausgabe.jpg\"\/><\/span><\/p>\n<h3 id=\"tab-con-8\">Kernel Meldungen kontrollieren<\/h3>\n<h4>dmesg &ndash; Kernel-Ringpuffer Meldungen ausgeben<\/h4>\n<p>Mit <strong>dmesg<\/strong> k&ouml;nnen Meldungen des Kernel-Ringpuffers im <a class=\"glossaryLink cmtt_Informatik\" aria-describedby=\"tt\" data-cmtooltip=\"&lt;div class=glossaryItemTitle&gt;TTY [Teletype]&lt;\/div&gt;&lt;div class=glossaryItemBody&gt;TTY steht f&uuml;r Teletype, welches das englische Wort f&uuml;r Fernschreiber ist, und steht in einem UNIX-System f&uuml;r ein Terminal.&lt;\/div&gt;&lt;div class=cmtt_synonyms_wrapper&gt;&lt;div class=cmtt_synonyms_title&gt;Synonyms: &lt;\/div&gt;&lt;div class=cmtt_synonyms&gt;Terminal&lt;\/div&gt;&lt;\/div&gt;\" href=\"https:\/\/profi-tutorials.de\/linux\/glossar\/tty\/\" target=\"_blank\" data-mobile-support=\"0\" data-gt-translate-attributes='[{\"attribute\":\"data-cmtooltip\", \"format\":\"html\"}]' tabindex=\"0\" role=\"link\">Terminal<\/a> ausgegeben werden:<\/p>\n<pre>dmesg [Optionen]<\/pre>\n<p>Es gibt einige Optionen, die bei der Verwendung des Befehls sehr hilfreich sein k&ouml;nnen. Durch den Zusatz <strong>-T<\/strong> kann beispielsweise die Zeit in einem f&uuml;r Menschen besser lesbaren Format angezeigt werden. Mit <strong>-d<\/strong> kann der zeitliche Abstand in Millisekunden zwischen den Meldungen angezeigt werden.<\/p>\n<h2 id=\"tab-con-11\">Logs<\/h2>\n<p>Bei der Fehlersuche ist es h&auml;ufig notwendig, auch verschiedene Logs mit einzubeziehen. Mit dem Befehl <strong>tail<\/strong> k&ouml;nnen zahlreiche Logs nach Fehlermeldungen durchsucht werden. Um die letzten 200 Zeilen eines Logs anzuzeigen, wird beispielsweise die folgende Syntax verwendet:<\/p>\n<pre>tail -200 [Dateipfad]<\/pre>\n<p>Der Dateipfad stellt dabei den Pfad zur Logdatei dar. Im Folgenden werden einige der wichtigsten Logdateien kurz erkl&auml;rt.<\/p>\n<h3 id=\"tab-con-2\">Die \/var\/log\/messages<\/h3>\n<p>In der \/var\/log\/messages sind die verschiedensten Systemmeldungen enthalten. Dazu geh&ouml;ren Boot-Logs, sowie Meldungen von mail, <a class=\"glossaryLink cmtt_Informatik\" aria-describedby=\"tt\" data-cmtooltip=\"&lt;div class=glossaryItemTitle&gt;Cronjob&lt;\/div&gt;&lt;div class=glossaryItemBody&gt;Cronjobs sind wiederkehrende Aufgaben, welche unter Linux- bzw. UNIX-Betriebssystemen durch den sogenannten Cron-Daemon ausgef&uuml;hrt werden.&lt;\/div&gt;\" href=\"https:\/\/profi-tutorials.de\/linux\/glossar\/cronjob\/\" target=\"_blank\" data-mobile-support=\"0\" data-gt-translate-attributes='[{\"attribute\":\"data-cmtooltip\", \"format\":\"html\"}]' tabindex=\"0\" role=\"link\">cron<\/a>, daemon, auth, kernel etc.<\/p>\n<h3 id=\"tab-con-10\">Das \/var\/log\/auth.log<\/h3>\n<p>Im \/var\/log\/auth.log werden alle Authentifizierungsversuche am System geloggt. Dazu geh&ouml;ren nicht nur fehlgeschlagene, sondern auch erfolgreiche Login-Vorg&auml;nge.<\/p>\n<h2 id=\"tab-con-4\">Das Video zu diesem Beitrag<\/h2>\n<p style=\"text-align: center;\">Abonniere JETZT unseren Newsletter!<\/p>\n<p style=\"text-align: center;\">Verpasse nie wieder <strong>neue<\/strong> Beitr&auml;ge und <strong>exklusive Insider-Only-Inhalte!<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Bei der Kontrolle von Linux-Systemen sollten Status von beispielsweise CPU, Arbeitsspeicher, Laufwerken und Prozessen eingesehen und \u00fcberpr\u00fcft werden. F\u00fcr die Abfrage dieser Statusinformationen gibt es unter Linux einige wichtige Befehle, die im Folgenden einmal kurz erkl\u00e4rt werden. Befehle Administration von Systemressourcen und Prozessen top &#8211; Prozesse und Systemressourcen anzeigen Mit dem top Befehl l\u00e4sst sich [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":1445,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","tve_updated_post":"<div class=\"thrv_wrapper thrv_text_element\"><p>Bei der Kontrolle von Linux-Systemen sollten Status von beispielsweise CPU, Arbeitsspeicher, Laufwerken und Prozessen eingesehen und \u00fcberpr\u00fcft werden. F\u00fcr die Abfrage dieser Statusinformationen gibt es unter Linux einige wichtige Befehle, die im Folgenden einmal kurz erkl\u00e4rt werden.<\/p><\/div><div class=\"thrv_wrapper thrv_contents_table\" data-columns=\"2\" data-headers=\"h1,h2,h3\">\n\t<div class=\"tve_contents_table\">\n\t\t<span class=\"tve_ct_title\" data-css=\"tve-u-16ffc0bec90\" style=\"\">Inhaltsverzeichnis<\/span>\n\t\t<div class=\"tve_ct_content tve_clearfix\"><div class=\"ct_column sep\" style=\"width: 50%; min-height: 206px;\"><div class=\"tve_ct_level1\"><a href=\"#tab-con-12\" rel=\"nofollow\">Befehle<\/a><\/div><div class=\"tve_ct_level2\"><a href=\"#tab-con-6\" rel=\"nofollow\">Administration von Systemressourcen und Prozessen<\/a><\/div><div class=\"tve_ct_level2\"><a href=\"#tab-con-1\" rel=\"nofollow\">Speicheradministration<\/a><\/div><div class=\"tve_ct_level2\"><a href=\"#tab-con-8\" rel=\"nofollow\">Kernel Meldungen kontrollieren<\/a><\/div><div class=\"tve_ct_level1\"><a href=\"#tab-con-11\" rel=\"nofollow\">Logs<\/a><\/div><div class=\"tve_ct_level2\"><a href=\"#tab-con-2\" rel=\"nofollow\">Die \/var\/log\/messages<\/a><\/div><div class=\"tve_ct_level2\"><a href=\"#tab-con-10\" rel=\"nofollow\">Das \/var\/log\/auth.log<\/a><\/div><\/div><div class=\"ct_column\" style=\"width: 50%; min-height: 206px;\"><div class=\"tve_ct_level1\"><a href=\"#tab-con-4\" rel=\"nofollow\">Das Video zu diesem Beitrag<\/a><\/div><\/div><\/div>\n\t<\/div>\n<\/div><div class=\"thrv_wrapper thrv_text_element tve-froala fr-box fr-basic\"><h2 class=\"\" id=\"tab-con-12\">Befehle<\/h2><h3 class=\"\" id=\"tab-con-6\">Administration von Systemressourcen und Prozessen<\/h3><h4 class=\"\" id=\"tab-con-3\">top - Prozesse und Systemressourcen anzeigen<\/h4><p>Mit dem <strong>top<\/strong> Befehl l\u00e4sst sich eine dynamische Liste von Prozessen und Systemressourcen anzeigen. Optionen oder Parameter sind bei diesem Befehl nicht notwendig:<\/p><p>[code]top [Optionen][\/code]<\/p><p>Eine ausf\u00fchrliche Erkl\u00e4rung zu den angezeigten Daten finden Sie in <a class=\"tve-froala\" href=\"https:\/\/profi-tutorials.de\/linux\/administration\/befehl-top\/\" style=\"outline: none;\" target=\"_blank\">unserem Beitrag zum Top Befehl<\/a>.<\/p><\/div><div class=\"thrv_wrapper thrv_text_element\"><h4 class=\"\" id=\"tab-con-0\">pstree - Prozess-Baum anzeigen<\/h4><p>Mit dem Befehl <strong>pstree<\/strong> (process tree) lassen sich alle laufenden Prozesse als Baum anzeigen. Der Befehl kann ohne jegliche Optionen verwendet werden, die Wurzel des Baums ist dann der init Prozess. Optional kann jedoch auch eine pid angegeben werden, die den Wurzel-Prozess bestimmt, oder ein Benutzer, dessen Prozesse in dem Baum angezeigt werden sollen. Die Syntax des Befehls lautet:<\/p><p>[code]pstree [Optionen][\/code]<\/p><\/div><div class=\"thrv_wrapper thrv_contentbox_shortcode thrv-content-box tve-elem-default-pad\">\n\t<div class=\"tve-content-box-background\" style=\"\" data-css=\"tve-u-16ffc1ff9a4\"><\/div>\n\t<div class=\"tve-cb\"><div class=\"thrv_wrapper thrv_text_element\" data-css=\"tve-u-16ffc1ff9a3\" style=\"\"><h5 class=\"\" data-css=\"tve-u-16ffc1ff9a1\">Beispiel: pstree mit pid<\/h5><\/div><div class=\"thrv_wrapper thrv-divider\" data-style-d=\"tve_sep-1\" data-thickness-d=\"2\" data-color-d=\"rgb(66, 66, 66)\" data-css=\"tve-u-16ffc1ff9a5\" style=\"\">\n\t<hr class=\"tve_sep tve_sep-1\" style=\"\">\n<\/div><div class=\"thrv_wrapper thrv_text_element\"><h6 class=\"\">Eingabe:<\/h6><\/div><div class=\"thrv_wrapper thrv_text_element\" style=\"\" data-css=\"tve-u-16ffc1ff9a8\"><p data-css=\"tve-u-16ffc1ff9a6\">pstree 1410<\/p><\/div><div class=\"thrv_wrapper thrv_text_element\"><h6 class=\"\">Bedeutung:<\/h6><p data-css=\"tve-u-16ffc1ff9a9\">Der ausgegebene Prozess-Baum hat den Prozess mit der pid 1410 als Wurzel..<\/p><\/div><\/div>\n<\/div><div class=\"thrv_wrapper thrv_contentbox_shortcode thrv-content-box tve-elem-default-pad\">\n\t<div class=\"tve-content-box-background\" style=\"\" data-css=\"tve-u-16ffc21f5ba\"><\/div>\n\t<div class=\"tve-cb\"><div class=\"thrv_wrapper thrv_text_element\" data-css=\"tve-u-16ffc21f5b9\" style=\"\"><h5 class=\"\" data-css=\"tve-u-16ffc21f5b7\">Beispiel: pstree mit Benutzer<\/h5><\/div><div class=\"thrv_wrapper thrv-divider\" data-style-d=\"tve_sep-1\" data-thickness-d=\"2\" data-color-d=\"rgb(66, 66, 66)\" data-css=\"tve-u-16ffc21f5bb\" style=\"\">\n\t<hr class=\"tve_sep tve_sep-1\" style=\"\">\n<\/div><div class=\"thrv_wrapper thrv_text_element\"><h6 class=\"\">Eingabe:<\/h6><\/div><div class=\"thrv_wrapper thrv_text_element\" style=\"\" data-css=\"tve-u-16ffc21f5bd\"><p data-css=\"tve-u-16ffc21f5bc\">pstree hellberg<\/p><\/div><div class=\"thrv_wrapper thrv_text_element\"><h6 class=\"\">Bedeutung:<\/h6><p data-css=\"tve-u-16ffc21f5be\">Alle Prozesse, die dem Benutzer \"hellberg\" geh\u00f6ren, werden als Baum ausgegeben.<\/p><\/div><\/div>\n<\/div><div class=\"thrv_wrapper thrv_text_element\"><h3 class=\"\" id=\"tab-con-1\">Speicheradministration<\/h3><h4 class=\"\">tree - Verzeichnishierarchie als Baum anzeigen<\/h4><p>Mit tree kann die Verzeichnisstruktur des Systems hierarchisch als Baum angezeigt werden.<\/p><p>[code]tree [Optionen][\/code]<\/p><p>Da tree standardm\u00e4\u00dfig nicht installiert ist, muss dies vor der Verwendung nachgeholt werden:<\/p><p>[code]apt-get install tree[\/code]<\/p><\/div><div class=\"thrv_wrapper thrv_text_element\"><h4 class=\"\" id=\"tab-con-7\">df - freien Festplattenplatz anzeigen<\/h4><p>Der Befehl <strong>df<\/strong> (disk free) gibt den freien Festplattenplatz der eingeh\u00e4ngten Partitionen aus.<\/p><p>[code]df [Optionen][\/code]<\/p><p>Durch Hinzuf\u00fcgen der Option <strong>-h<\/strong> (human readable) l\u00e4sst sich der freie Speicher in einem besser lesbaren Format ausgeben (Kilobyte, Megabyte, Gigabyte etc.).<\/p><\/div><div class=\"thrv_wrapper thrv_contentbox_shortcode thrv-content-box tve-elem-default-pad\">\n\t<div class=\"tve-content-box-background\" style=\"\" data-css=\"tve-u-16ffc400d40\"><\/div>\n\t<div class=\"tve-cb\"><div class=\"thrv_wrapper thrv_text_element\" data-css=\"tve-u-16ffc400d3f\" style=\"\"><h5 class=\"\" data-css=\"tve-u-16ffc400d3e\">Beispiel: df -h<\/h5><\/div><div class=\"thrv_wrapper thrv-divider\" data-style-d=\"tve_sep-1\" data-thickness-d=\"2\" data-color-d=\"rgb(66, 66, 66)\" data-css=\"tve-u-16ffc400d41\" style=\"\">\n\t<hr class=\"tve_sep tve_sep-1\" style=\"\">\n<\/div><div class=\"thrv_wrapper thrv_text_element\"><h6 class=\"\">Eingabe:<\/h6><\/div><div class=\"thrv_wrapper thrv_text_element\" style=\"\" data-css=\"tve-u-16ffc400d44\"><p data-css=\"tve-u-16ffc400d43\">df -h<\/p><\/div><div class=\"thrv_wrapper thrv_text_element\"><h6 class=\"\">Ausgabe:<\/h6><\/div><div class=\"thrv_wrapper tve_image_caption\" data-css=\"tve-u-16ffc463c1f\" style=\"\"><span class=\"tve_image_frame\"><img class=\"tve_image wp-image-1356\" alt=\"Ausgabe des df Befehls\" data-id=\"1356\" width=\"700\" height=\"320\" title=\"df-ausgabe\" src=\"https:\/\/profi-tutorials.de\/linux\/wp-content\/uploads\/sites\/3\/2020\/01\/df-ausgabe.jpg\" data-css=\"tve-u-16ffc463c24\"><\/span><\/div><\/div>\n<\/div><div class=\"thrv_wrapper thrv_text_element\"><h4 class=\"\" id=\"tab-con-9\">du - belegten Festplattenplatz anzeigen<\/h4><p>Mit <strong>du<\/strong> (disk usage) wird der belegte Festplattenplatz der angegebenen Datei ausgegeben. In Verzeichnissen wird der Verbrauch rekursiv f\u00fcr die enthaltenen Dateien und Unterverzeichnisse berechnet.<\/p><p>[code]du [Optionen] [Pfad][\/code]<\/p><p>Auch hier kann wieder die Option <strong>-h<\/strong> verwendet werden.<\/p><\/div><div class=\"thrv_wrapper thrv_contentbox_shortcode thrv-content-box tve-elem-default-pad\">\n\t<div class=\"tve-content-box-background\" style=\"\" data-css=\"tve-u-16ffc400d40\"><\/div>\n\t<div class=\"tve-cb\"><div class=\"thrv_wrapper thrv_text_element\" data-css=\"tve-u-16ffc400d3f\" style=\"\"><h5 class=\"\" data-css=\"tve-u-16ffc400d3e\">Beispiel: du -h<\/h5><\/div><div class=\"thrv_wrapper thrv-divider\" data-style-d=\"tve_sep-1\" data-thickness-d=\"2\" data-color-d=\"rgb(66, 66, 66)\" data-css=\"tve-u-16ffc400d41\" style=\"\">\n\t<hr class=\"tve_sep tve_sep-1\" style=\"\">\n<\/div><div class=\"thrv_wrapper thrv_text_element\"><h6 class=\"\">Eingabe:<\/h6><\/div><div class=\"thrv_wrapper thrv_text_element\" style=\"\" data-css=\"tve-u-16ffc400d44\"><p data-css=\"tve-u-16ffc400d43\">du -h<\/p><\/div><div class=\"thrv_wrapper thrv_text_element\"><h6 class=\"\">Ausgabe:<\/h6><\/div><div class=\"thrv_wrapper tve_image_caption\" data-css=\"tve-u-16ffc49332a\" style=\"\"><span class=\"tve_image_frame\"><img class=\"tve_image wp-image-1357\" alt=\"Ausgabe des du Befehls\" data-id=\"1357\" width=\"550\" height=\"190\" title=\"du-ausgabe\" src=\"https:\/\/profi-tutorials.de\/linux\/wp-content\/uploads\/sites\/3\/2020\/01\/du-ausgabe.jpg\" data-css=\"tve-u-16ffc49332e\"><\/span><\/div><\/div>\n<\/div><div class=\"thrv_wrapper thrv_text_element\"><h3 class=\"\" id=\"tab-con-8\">Kernel Meldungen kontrollieren<\/h3><h4 class=\"\">dmesg - Kernel-Ringpuffer Meldungen ausgeben<\/h4><p>Mit <strong>dmesg<\/strong> k\u00f6nnen Meldungen des Kernel-Ringpuffers im Terminal ausgegeben werden:<\/p><p>[code]dmesg [Optionen][\/code]<\/p><p>Es gibt einige Optionen, die bei der Verwendung des Befehls sehr hilfreich sein k\u00f6nnen. Durch den Zusatz <strong>-T<\/strong> kann beispielsweise die Zeit in einem f\u00fcr Menschen besser lesbaren Format angezeigt werden. Mit <strong>-d<\/strong> kann der zeitliche Abstand in Millisekunden zwischen den Meldungen angezeigt werden.<\/p><\/div><div class=\"thrv_wrapper thrv_text_element\"><h2 class=\"\" id=\"tab-con-11\">Logs<\/h2><p>Bei der Fehlersuche ist es h\u00e4ufig notwendig, auch verschiedene Logs mit einzubeziehen. Mit dem Befehl <strong>tail<\/strong> k\u00f6nnen zahlreiche Logs nach Fehlermeldungen durchsucht werden. Um die letzten 200 Zeilen eines Logs anzuzeigen, wird beispielsweise die folgende Syntax verwendet:<\/p><p>[code]tail -200 [Dateipfad][\/code]<\/p><p>Der Dateipfad stellt dabei den Pfad zur Logdatei dar. Im Folgenden werden einige der wichtigsten Logdateien kurz erkl\u00e4rt.<\/p><h3 class=\"\" id=\"tab-con-2\">Die \/var\/log\/messages<\/h3><p>In der \/var\/log\/messages sind die verschiedensten Systemmeldungen enthalten. Dazu geh\u00f6ren Boot-Logs, sowie Meldungen von mail, cron, daemon, auth, kernel etc.<\/p><h3 class=\"\" id=\"tab-con-10\">Das \/var\/log\/auth.log<\/h3><p>Im \/var\/log\/auth.log werden alle Authentifizierungsversuche am System geloggt. Dazu geh\u00f6ren nicht nur fehlgeschlagene, sondern auch erfolgreiche Login-Vorg\u00e4nge.<\/p><\/div><div class=\"thrv_wrapper thrv_contentbox_shortcode thrv-content-box tve-elem-default-pad\" style=\"padding-bottom: 0px !important; padding-left: 0px !important;\" data-css=\"tve-u-17035e51cc7\">\n\t<div class=\"tve-content-box-background\"><\/div>\n\t<div class=\"tve-cb\"><div class=\"thrv_wrapper thrv_text_element\"><h2 class=\"\" id=\"tab-con-4\">Das Video zu diesem Beitrag<\/h2><\/div><div class=\"thrv_wrapper thrv-button tve_ea_thrive_video\" data-css=\"tve-u-170212815cc\" data-tcb_hover_state_parent=\"\" data-button-style=\"border_1\">\n\t<a href=\"#\" class=\"tcb-button-link tve_evt_manager_listen tve_et_click\" rel=\"\" data-tcb-events=\"__TCB_EVENT_[{&quot;config&quot;:{&quot;s&quot;:&quot;youtube&quot;,&quot;p&quot;:{&quot;a&quot;:true,&quot;id&quot;:&quot;9cbN4v657bo&quot;,&quot;url&quot;:&quot;https:\/\/youtu.be\/9cbN4v657bo&quot;}},&quot;a&quot;:&quot;thrive_video&quot;,&quot;t&quot;:&quot;click&quot;}]_TNEVE_BCT__\" style=\"\">\n\t\t<span class=\"tcb-button-texts\">Starte das Video...<\/span>\n\t<\/a>\n<\/div><\/div>\n<\/div><div class=\"thrv_wrapper thrv_contentbox_shortcode thrv-content-box tve-elem-default-pad\" style=\"\" data-css=\"tve-u-170d3ac0081\">\n\t<div class=\"tve-content-box-background\" style=\"\" data-css=\"tve-u-170d3ac0085\"><\/div>\n\t<div class=\"tve-cb\"><div class=\"thrv_wrapper thrv_text_element\" style=\"\" data-css=\"tve-u-170d3ac0083\"><p data-css=\"tve-u-170d3ac0080\" style=\"text-align: center;\">Abonniere JETZT unseren Newsletter!<\/p><\/div><div class=\"thrv_wrapper thrv-divider\" data-style-d=\"tve_sep-1\" data-thickness-d=\"3\" data-color-d=\"rgb(70, 70, 70)\" data-css=\"tve-u-170d3ac0086\" style=\"\">\n\t<hr class=\"tve_sep tve_sep-1\" style=\"\">\n<\/div><div class=\"thrv_wrapper thrv_text_element\" style=\"\" data-css=\"tve-u-170d3ac0082\"><p data-css=\"tve-u-170d3ac0087\" style=\"text-align: center;\">Verpasse nie wieder <strong>neue<\/strong> Beitr\u00e4ge und <strong>exklusive Insider-Only-Inhalte!<\/strong><\/p><\/div><div class=\"thrv_wrapper thrv_lead_generation\" data-connection=\"custom-html\" data-css=\"tve-u-170d3ac0089\" style=\"\"><input type=\"hidden\" class=\"tve-lg-err-msg\" value=\"{&quot;email&quot;:&quot;Email address invalid&quot;,&quot;phone&quot;:&quot;Phone number invalid&quot;,&quot;password&quot;:&quot;Password invalid&quot;,&quot;passwordmismatch&quot;:&quot;Password mismatch error&quot;,&quot;required&quot;:&quot;Required field missing&quot;}\">\n\t<div class=\"thrv_lead_generation_container tve_clearfix\"><form method=\"post\" action=\"#\" id=\"ktv2-form-200765\" novalidate=\"novalidate\"><input type=\"hidden\" class=\"tve-f-a-hidden\" value=\"https:\/\/www.klick-tipp.com\/api\/subscriber\/signin.html\"><input id=\"apikey\" type=\"hidden\" name=\"apikey\" value=\"4nv5z2tonz8za09b\"><div class=\"tve_lead_generated_inputs_container\"><div class=\"tve_lg_input_container tve_lg_input\"><input name=\"fields[fieldFirstName]\" id=\"\" type=\"text\" placeholder=\"Name\" value=\"\" data-css=\"tve-u-1709bd3f99e\" data-placeholder=\"Name\"><\/div><div class=\"tve_lg_input_container tve_lg_input\"><input name=\"email\" id=\"\" type=\"text\" placeholder=\"E-Mail\" value=\"\" data-required=\"1\" data-validation=\"email\" data-css=\"tve-u-1709bd3f99e\" data-placeholder=\"E-Mail\"><\/div><div class=\"tve_lg_input_container tve_submit_container tve_lg_submit\" data-css=\"tve-u-170d3ac008a\"><button type=\"submit\" class=\"\">KLICKE HIER F\u00dcR ABO!<\/button><\/div><\/div><\/form><\/div>\n<div class=\"thrv_lead_generation_code\" style=\"display: none;\">__CONFIG_lead_generation_code__&lt;div id=\"form-200765-wrapper\"&gt;&lt;form id=\"ktv2-form-200765\" accept-charset=\"UTF-8\" method=\"post\" action=\"https:\/\/www.klick-tipp.com\/api\/subscriber\/signin.html\" &gt;&lt;input type=\"hidden\" name=\"apikey\" value=\"4nv5z2tonz8za09b\" \/&gt;&lt;input type=\"text\" name=\"fields[fieldFirstName]\"\/&gt;&lt;input type=\"text\" name=\"email\"\/&gt;&lt;\/form&gt;&lt;\/div&gt;__CONFIG_lead_generation_code__<\/div><\/div><\/div>\n<\/div>","tve_custom_css":"@import url(\"\/\/fonts.googleapis.com\/css?family=Open+Sans:400,600&subset=latin\");@media (min-width: 300px){[data-css=\"tve-u-16ffc0bec90\"] { background-color: var(--tcb-color-3); }:not(#tve) [data-css=\"tve-u-16ffc1ff9a1\"] { padding-top: 0px !important; margin-top: 0px !important; }[data-css=\"tve-u-16ffc1ff9a3\"] { overflow: hidden; background-color: transparent !important; background-image: none !important; border-radius: 0px !important; }[data-css=\"tve-u-16ffc1ff9a4\"] { border-radius: 30px; overflow: hidden; background-image: linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.08)) !important; background-size: auto !important; background-position: 50% 50% !important; background-attachment: scroll !important; background-repeat: no-repeat !important; }[data-css=\"tve-u-16ffc1ff9a5\"] .tve_sep { border-width: 2px !important; border-color: rgb(66, 66, 66) !important; }[data-css=\"tve-u-16ffc1ff9a5\"] { padding-top: 0px !important; padding-bottom: 10px !important; }:not(#tve) [data-css=\"tve-u-16ffc1ff9a6\"] { font-family: \"Courier New\", Courier, monospace !important; font-weight: var(--g-regular-weight, normal)  !important; padding-bottom: 0px !important; margin-bottom: 0px !important; }[data-css=\"tve-u-16ffc1ff9a8\"] { background-image: linear-gradient(rgba(0, 0, 0, 0.13), rgba(0, 0, 0, 0.13)) !important; background-size: auto !important; background-position: 50% 50% !important; background-attachment: scroll !important; background-repeat: no-repeat !important; margin-bottom: 0px !important; padding: 5px 10px !important; }:not(#tve) [data-css=\"tve-u-16ffc1ff9a9\"] { padding-bottom: 0px !important; margin-bottom: 0px !important; }:not(#tve) [data-css=\"tve-u-16ffc21f5b7\"] { padding-top: 0px !important; margin-top: 0px !important; }[data-css=\"tve-u-16ffc21f5b9\"] { overflow: hidden; background-color: transparent !important; background-image: none !important; border-radius: 0px !important; }[data-css=\"tve-u-16ffc21f5ba\"] { border-radius: 30px; overflow: hidden; background-image: linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.08)) !important; background-size: auto !important; background-position: 50% 50% !important; background-attachment: scroll !important; background-repeat: no-repeat !important; }[data-css=\"tve-u-16ffc21f5bb\"] .tve_sep { border-width: 2px !important; border-color: rgb(66, 66, 66) !important; }[data-css=\"tve-u-16ffc21f5bb\"] { padding-top: 0px !important; padding-bottom: 10px !important; }:not(#tve) [data-css=\"tve-u-16ffc21f5bc\"] { font-family: \"Courier New\", Courier, monospace !important; font-weight: var(--g-regular-weight, normal)  !important; padding-bottom: 0px !important; margin-bottom: 0px !important; }[data-css=\"tve-u-16ffc21f5bd\"] { background-image: linear-gradient(rgba(0, 0, 0, 0.13), rgba(0, 0, 0, 0.13)) !important; background-size: auto !important; background-position: 50% 50% !important; background-attachment: scroll !important; background-repeat: no-repeat !important; margin-bottom: 0px !important; padding: 5px 10px !important; }:not(#tve) [data-css=\"tve-u-16ffc21f5be\"] { padding-bottom: 0px !important; margin-bottom: 0px !important; }:not(#tve) [data-css=\"tve-u-16ffc400d3e\"] { padding-top: 0px !important; margin-top: 0px !important; }[data-css=\"tve-u-16ffc400d3f\"] { overflow: hidden; background-color: transparent !important; background-image: none !important; border-radius: 0px !important; }[data-css=\"tve-u-16ffc400d40\"] { border-radius: 30px; overflow: hidden; background-image: linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.08)) !important; background-size: auto !important; background-position: 50% 50% !important; background-attachment: scroll !important; background-repeat: no-repeat !important; }[data-css=\"tve-u-16ffc400d41\"] .tve_sep { border-width: 2px !important; border-color: rgb(66, 66, 66) !important; }[data-css=\"tve-u-16ffc400d41\"] { padding-top: 0px !important; padding-bottom: 10px !important; }:not(#tve) [data-css=\"tve-u-16ffc400d43\"] { font-family: \"Courier New\", Courier, monospace !important; font-weight: var(--g-regular-weight, normal)  !important; padding-bottom: 0px !important; margin-bottom: 0px !important; }[data-css=\"tve-u-16ffc400d44\"] { background-image: linear-gradient(rgba(0, 0, 0, 0.13), rgba(0, 0, 0, 0.13)) !important; background-size: auto !important; background-position: 50% 50% !important; background-attachment: scroll !important; background-repeat: no-repeat !important; margin-bottom: 0px !important; padding: 5px 10px !important; }[data-css=\"tve-u-16ffc463c1f\"] { width: 700px; margin-bottom: 0px !important; margin-top: 0px !important; }[data-css=\"tve-u-16ffc463c24\"] { margin-top: 0px; margin-left: 0px; }[data-css=\"tve-u-16ffc49332a\"] { width: 550px; margin-bottom: 0px !important; margin-top: 0px !important; }[data-css=\"tve-u-16ffc49332e\"] { margin-top: 0px; margin-left: 0px; }[data-css=\"tve-u-170212815cc\"] .tcb-button-link { border-bottom: 4px solid rgb(33, 72, 112); border-radius: 4px; border-top-color: rgb(220, 220, 220); border-right-color: rgb(220, 220, 220); border-left-color: rgb(220, 220, 220); background-image: none !important; background-color: rgb(51, 103, 153) !important; }:not(#tve) [data-css=\"tve-u-170212815cc\"]:hover .tcb-button-link { background-color: rgb(41, 84, 127) !important; }[data-css=\"tve-u-17035e51cc7\"] { margin-top: 0px !important; margin-bottom: 0px !important; padding: 0px !important; }:not(#tve) [data-css=\"tve-u-170d3ac0080\"] { font-size: 25px !important; font-weight: var(--g-bold-weight, bold)  !important; padding-bottom: 0px !important; margin-bottom: 0px !important; padding-top: 0px !important; margin-top: 0px !important; color: rgb(70, 70, 70) !important; --tcb-applied-color:var$(--tcb-color-1)  !important; }[data-css=\"tve-u-170d3ac0081\"] { padding: 10px !important; }[data-css=\"tve-u-170d3ac0082\"] { margin-left: 0px !important; margin-right: 0px !important; padding-right: 30px !important; padding-left: 30px !important; }[data-css=\"tve-u-170d3ac0083\"] { margin-right: 0px !important; margin-left: 0px !important; }[data-css=\"tve-u-170d3ac0085\"] { border-radius: 30px; overflow: hidden; background-image: linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.08)) !important; background-size: auto !important; background-position: 50% 50% !important; background-attachment: scroll !important; background-repeat: no-repeat !important; }[data-css=\"tve-u-170d3ac0086\"] .tve_sep { border-width: 3px !important; border-color: rgb(70, 70, 70) !important; }[data-css=\"tve-u-170d3ac0086\"] { padding-top: 0px !important; }:not(#tve) [data-css=\"tve-u-170d3ac0087\"] { color: rgb(70, 70, 70) !important; --tcb-applied-color:var$(--tcb-color-1)  !important; padding-bottom: 0px !important; margin-bottom: 0px !important; font-size: 18px !important; }[data-css=\"tve-u-170d3ac0089\"] { float: none; border: none; max-width: 500px !important; margin-left: auto !important; margin-right: auto !important; }:not(#tve) [data-css=\"tve-u-170d3ac008a\"] button { border-bottom: 4px solid rgb(33, 72, 112); border-radius: 4px; border-top: none; border-right: none; border-left: none; font-weight: var(--tve-font-weight, var(--g-bold-weight, bold)); font-family: var(--tve-font-family, \"Open Sans\"); font-size: var(--tve-font-size, 18px); text-transform: var(--tve-text-transform, uppercase); background-image: none !important; background-color: rgb(51, 103, 153) !important; }:not(#tve) [data-css=\"tve-u-170d3ac008a\"]:hover button { background-image: none !important; background-color: rgb(41, 84, 127) !important; border-color: rgb(229, 227, 227) rgb(229, 227, 227) rgb(24, 54, 86) !important; }[data-css=\"tve-u-170d3ac008a\"] { --tve-font-weight:var(--g-bold-weight, bold); --tve-font-family:\"Open Sans\"; --g-regular-weight:400; --g-bold-weight:600; --tve-font-size:18px; --tve-text-transform:uppercase; }}","tve_user_custom_css":"","tve_globals":{"e":"1","font_cls":[]},"tcb2_ready":1,"tcb_editor_enabled":1,"tve_landing_page":"","_tve_header":"0","_tve_footer":"0"},"categories":[8],"tags":[],"class_list":["post-1302","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-administration"],"_links":{"self":[{"href":"https:\/\/profi-tutorials.de\/linux\/wp-json\/wp\/v2\/posts\/1302","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/profi-tutorials.de\/linux\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/profi-tutorials.de\/linux\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/profi-tutorials.de\/linux\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/profi-tutorials.de\/linux\/wp-json\/wp\/v2\/comments?post=1302"}],"version-history":[{"count":93,"href":"https:\/\/profi-tutorials.de\/linux\/wp-json\/wp\/v2\/posts\/1302\/revisions"}],"predecessor-version":[{"id":3648,"href":"https:\/\/profi-tutorials.de\/linux\/wp-json\/wp\/v2\/posts\/1302\/revisions\/3648"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/profi-tutorials.de\/linux\/wp-json\/wp\/v2\/media\/1445"}],"wp:attachment":[{"href":"https:\/\/profi-tutorials.de\/linux\/wp-json\/wp\/v2\/media?parent=1302"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/profi-tutorials.de\/linux\/wp-json\/wp\/v2\/categories?post=1302"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/profi-tutorials.de\/linux\/wp-json\/wp\/v2\/tags?post=1302"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}