{"id":7386,"date":"2021-06-18T17:13:59","date_gmt":"2021-06-18T17:13:59","guid":{"rendered":"https:\/\/profi-tutorials.de\/linux\/?p=7386"},"modified":"2021-07-09T14:30:50","modified_gmt":"2021-07-09T14:30:50","slug":"befehl-stat","status":"publish","type":"post","link":"https:\/\/profi-tutorials.de\/linux\/grundlagen\/befehl-stat\/","title":{"rendered":"Der Befehl stat"},"content":{"rendered":"<p>In diesem Beitrag lernen Sie den Befehl stat kennen, welcher unter Linux- \/ UNIX-Betriebssystemen verwendet wird, um verschiedene Metadaten von Dateien und Ordnern &ndash; etwa zu Zeitstempeln, Berechtigungen, Besitzer, Gruppe und dem Dateityp &ndash; auszugeben. Die Aufgabe von stat kann dabei mithilfe von Formatangaben zudem fast beliebig angepasst werden.&nbsp;<\/p>\n<p>Da stat Teil des Pakets coreutils ist, ist es auf den meisten Systemen bereits vorinstalliert.&nbsp;<\/p>\n<h2 id=\"t-1622631984762\">Allgemeine Syntax<\/h2>\n<p>Die allgemeine <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 <strong>stat<\/strong> lautet folgenderma&szlig;en:<\/p>\n<pre>stat [Optionen] [Datei \/ Verzeichnis]<\/pre>\n<p>Der Befehl kann ohne Angabe von Optionen auf einer Datei oder einem Verzeichnis ausgef&uuml;hrt werden. Bei diesem Anwendungsfall umfasst die Ausgabe von <strong>stat<\/strong> eine Vielzahl an Informationen zur gegebenen Datei bzw. dem gew&auml;hlten Verzeichnis: Name, Gr&ouml;&szlig;e, Bl&ouml;cke, EA Block, Typ, Ger&auml;t, Inode, Verkn&uuml;pfungen, Berechtigungen sowie Zugriffs- \/ Modifizierungs- \/ &Auml;nderungs- und Erstellungszeitstempel.<\/p>\n<h5>Beispiel: stat ohne Optionen (Datei)<\/h5>\n<h6 style=\"\"><span style=\"font-weight: normal;\">In diesem Beispiel wird die Anwendung von <\/span>stat<span style=\"font-weight: normal;\"> ohne jegliche Optionen gezeigt. Es soll eine umfangreiche Ausgabe von Informationen zu einer Datei <\/span>&ldquo;linux-befehle.pdf&rdquo;<span style=\"font-weight: normal;\"> erfolgen, welche sich im aktuellen Arbeitsverzeichnis befindet.<\/span><\/h6>\n<h6>Eingabe:<\/h6>\n<p>stat linux-befehle.pdf<\/p>\n<h6>Ausgabe:<\/h6>\n<p><span><img decoding=\"async\" alt=\"befehl-stat-beispiel-1\" data-id=\"7392\" width=\"430\" data-init-width=\"1024\" height=\"101\" data-init-height=\"241\" title=\"befehl-stat-beispiel-1\" loading=\"lazy\" src=\"https:\/\/profi-tutorials.de\/linux\/wp-content\/uploads\/sites\/3\/2021\/06\/befehl-stat-beispiel-1.jpg\" data-width=\"430\" data-height=\"101\"\/><\/span><\/p>\n<h5>Beispiel: stat ohne Optionen (Verzeichnis)<\/h5>\n<h6 style=\"\"><span style=\"font-weight: normal;\">&Auml;hnlich wie im ersten Beispiel soll <\/span>stat<span style=\"font-weight: normal;\">&nbsp;hier wieder ohne Optionen ausgef&uuml;hrt werden. In diesem Fall sollen nun jedoch Informationen zu einem Verzeichnis <\/span>&ldquo;grundlagen\/&rdquo;<span style=\"font-weight: normal;\"> im aktuellen Arbeitsverzeichnis ausgegeben werden.<\/span><\/h6>\n<h6>Eingabe:<\/h6>\n<p>stat grundlagen\/<\/p>\n<h6>Ausgabe:<\/h6>\n<p><span><img decoding=\"async\" alt=\"befehl-stat-beispiel-2\" data-id=\"7394\" width=\"430\" data-init-width=\"1024\" height=\"102\" data-init-height=\"243\" title=\"befehl-stat-beispiel-2\" loading=\"lazy\" src=\"https:\/\/profi-tutorials.de\/linux\/wp-content\/uploads\/sites\/3\/2021\/06\/befehl-stat-beispiel-2.jpg\" data-width=\"430\" data-height=\"102\"\/><\/span><\/p>\n<h2 id=\"t-1622631984763\">Wichtige Optionen<\/h2>\n<p>Die wichtigsten Optionen des Befehls <strong>stat<\/strong> werden in diesem Abschnitt beschrieben und ihre Anwendung mit Beispielen verdeutlicht.<\/p>\n<h3 id=\"t-1622631984764\">-L &ndash; Verkn&uuml;pfungen folgen<\/h3>\n<p>Standardm&auml;&szlig;ig gibt <strong>stat <\/strong>bei Verwendung mit Verkn&uuml;pfungen Informationen zu diesen, nicht jedoch zu den Dateien, auf welche sie zeigen, aus. Mithilfe der <strong>Option -L<\/strong> (<strong>L<\/strong>ink) kann <strong>stat<\/strong> Verkn&uuml;pfung folgen, sodass Informationen zur jeweiligen Zieldatei der Verkn&uuml;pfung angezeigt werden.&nbsp;<\/p>\n<pre>stat -L [Datei \/ Verzeichnis]<\/pre>\n<h5>Beispiel: Option -L<\/h5>\n<h6 style=\"\"><span style=\"font-weight: normal;\">Hier soll die Funktionsweise der <\/span>Option -L<span style=\"font-weight: normal;\">&nbsp;vorgestellt werden: Zun&auml;chst wird der Befehl <\/span>stat<span style=\"font-weight: normal;\">&nbsp;dazu ohne Optionen auf einer symbolischen Verkn&uuml;pfung angewendet, welche sich im aktuellen Arbeitsverzeichnis befindet. Anschlie&szlig;end wird <\/span>stat <span style=\"font-weight: normal;\">erneut auf derselben symbolischen Verkn&uuml;pfung ausgef&uuml;hrt, jedoch unter der <\/span>Option -L<span style=\"font-weight: normal;\">.<\/span><\/h6>\n<h6>Eingabe:<\/h6>\n<p>Zun&auml;chst wird <strong>stat <\/strong>ohne Optionen auf der symbolischen Verkn&uuml;pfung <strong>&ldquo;hellberg&rdquo;<\/strong> angewendet.<\/p>\n<p>stat hellberg<\/p>\n<h6>Ausgabe:<\/h6>\n<p>Die Ausgabe umfasst nun Informationen zur gegebenen symbolischen Verkn&uuml;pfung selbst. Die Verkn&uuml;pfung <strong>&ldquo;hellberg&rdquo;<\/strong> zeigt in diesem Fall auf das Verzeichnis <strong>\/home\/hellberg\/<\/strong>.<\/p>\n<p><span><img decoding=\"async\" alt=\"befehl-stat-beispiel-3\" data-id=\"7396\" width=\"430\" data-init-width=\"1124\" height=\"93\" data-init-height=\"244\" title=\"befehl-stat-beispiel-3\" loading=\"lazy\" src=\"https:\/\/profi-tutorials.de\/linux\/wp-content\/uploads\/sites\/3\/2021\/06\/befehl-stat-beispiel-3.jpg\" data-width=\"430\" data-height=\"93\"\/><\/span><\/p>\n<h6>Eingabe:<\/h6>\n<p><strong>stat<\/strong> wird diesmal die <strong>Option -L<\/strong> zum Folgen von Verkn&uuml;pfungen &uuml;bergeben.<\/p>\n<p>stat -L hellberg<\/p>\n<h6>Ausgabe:<\/h6>\n<p>In der Ausgabe werden Informationen zum Verzeichnis <strong>\/home\/hellberg<\/strong> angezeigt, welches das Ziel der Verkn&uuml;pfung <strong>&ldquo;hellberg&rdquo;<\/strong> darstellt.<\/p>\n<p><span><img decoding=\"async\" alt=\"befehl-stat-beispiel-4\" data-id=\"7398\" width=\"656\" data-init-width=\"1124\" height=\"143\" data-init-height=\"244\" title=\"befehl-stat-beispiel-4\" loading=\"lazy\" src=\"https:\/\/profi-tutorials.de\/linux\/wp-content\/uploads\/sites\/3\/2021\/06\/befehl-stat-beispiel-4.jpg\" data-width=\"656\" data-height=\"143\"\/><\/span><\/p>\n<h3 id=\"t-1625490225327\">-f &ndash; Dateisystemstatus anzeigen<\/h3>\n<p>Wird die <strong>Option -f<\/strong> (<strong>f<\/strong>ile-system) angegeben, so gibt <strong>stat <\/strong>anstelle des standardm&auml;&szlig;igen Dateistatus den Dateisystemstatus aus.<\/p>\n<pre>stat -f [Datei \/ Verzeichnis]<\/pre>\n<h3 id=\"t-1625490225328\">-c &ndash; Format spezifizieren<\/h3>\n<p>M&ouml;chten Sie anstelle der standardm&auml;&szlig;igen Ausgabe von <strong>stat <\/strong>ein eigenes Format verwenden, so k&ouml;nnen Sie dies mithilfe der <strong>Option -c<\/strong> tun. Das zu verwendende Format wird der Option dann, bestenfalls in Anf&uuml;hrungszeichen eingefasst, als Parameter &uuml;bergeben. Die verf&uuml;gbaren <strong>Formatangaben <\/strong>finden Sie im <a href=\"#tve-jump-17a76cc8a94\" jump-animation=\"smooth\">entsprechenden Abschnitt dieses Beitrags<\/a>.<\/p>\n<pre>stat -c [Format] [Datei \/ Verzeichnis]<\/pre>\n<p>Ein Zeilenumbruch wird von <strong>stat <\/strong>automatisch am Ende der Ausgabe eingef&uuml;gt.<\/p>\n<h5>Beispiel:<\/h5>\n<h5>Option -c<\/h5>\n<h6 style=\"\"><span style=\"font-weight: normal;\">Die Ausgabe des Befehls <\/span>stat <span style=\"font-weight: normal;\">soll in diesem Beispiel mithilfe der <\/span>Option -c<span style=\"font-weight: normal;\"> und einer Formatangabe festgelegt werden.<\/span><\/h6>\n<h6>Eingabe:<\/h6>\n<p>stat -c &ldquo;Das Element %n ist vom Typ %F.&rdquo; linux-befehle.pdf<\/p>\n<h6>Ausgabe:<\/h6>\n<p>Es werden nun Dateiname (<strong>&ldquo;%n&rdquo;<\/strong>) und Dateityp (<strong>&ldquo;%F&rdquo;<\/strong>) im gegebenen Format ausgegeben.<\/p>\n<p>Das Element linux-befehle.pdf ist vom Typ regul&auml;re Datei.<\/p>\n<h3 id=\"t-1625490225329\">&ndash;printf &ndash; Format (&ldquo;&rdquo; interpretieren)<\/h3>\n<p>Die <strong>Option &ndash;printf<\/strong> wird, &auml;hnlich wie auch die <strong>Option -c<\/strong> zur Angabe eines eigenen Formats f&uuml;r die Ausgabe von <strong>stat <\/strong>verwendet. <strong>Maskierungen <\/strong>mit dem <strong>R&uuml;ckschr&auml;gstrich &ldquo;&rdquo;<\/strong>, wie etwa <strong>&ldquo;n&rdquo;<\/strong> f&uuml;r einen Zeilenumbruch, werden hierbei jedoch interpretiert. Im Vergleich zur <strong>Option -c<\/strong> wird ein Zeilenumbruch am Ende der Ausgabe nicht automatisch eingef&uuml;gt &ndash; dies muss mit <strong>&ldquo;n&rdquo;<\/strong> erfolgen.<\/p>\n<pre>stat --printf [Format] [Datei \/ Verzeichnis]<\/pre>\n<h5>Beispiel: Option &ndash;printf<\/h5>\n<h6 style=\"\"><span style=\"font-weight: normal;\">Auch hier soll die Ausgabe von <\/span>stat <span style=\"font-weight: normal;\">auf ein eigenes Format festgelegt werden. In diesem Beispiel wird dabei jedoch die <\/span>Option &ndash;printf<span style=\"font-weight: normal;\"> verwendet &ndash; mithilfe von Maskierungen k&ouml;nnen nun etwa auch Zeilenumbr&uuml;che an beliebiger Stelle eingesetzt werden.<\/span><\/h6>\n<h6>Eingabe:<\/h6>\n<p>stat &ndash;printf &ldquo;Dateiname: %nnDateityp: %FnGroesse: %sn&rdquo; linux-befehle.pdf<\/p>\n<h6>Ausgabe:<\/h6>\n<p>Dateiname, Dateityp und Dateigr&ouml;&szlig;e (in Bytes) werden nun im vorgegebenen Format ausgegeben.<\/p>\n<p>Dateiname: linux-befehle.pdf<\/p>\n<p>Dateityp: regul&auml;re Datei<\/p>\n<p>Groesse: 816976<\/p>\n<h3 id=\"t-1625490225330\">-t &ndash; Ausgabe in Kurzform<\/h3>\n<p>Mit der <strong>Option -t<\/strong> (<strong>t<\/strong>erse) schlie&szlig;lich eine Ausgabe von Datei- \/ Verzeichnis-Informationen in Kurzform m&ouml;glich.<\/p>\n<pre>stat -t [Datei \/ Verzeichnis]<\/pre>\n<p>Der Befehl <strong>stat <\/strong>mit der <strong>Option -t<\/strong> ist &auml;quivalent zu folgendem Befehl:<\/p>\n<pre>stat -c \"%n %s %b %f %u %g %D %i %h %t %T %X %Y %Z %W %o\" [Datei \/ Verzeichnis]<\/pre>\n<p>Wird neben der <strong>Option -t<\/strong> auch die <strong>Option -f<\/strong> zur Anzeige von Dateisystemstatus &uuml;bergeben, so ist mit folgendem Befehl eine identische Ausgabe zu erhalten:<\/p>\n<pre>stat -f -c \"%n %i %l %t %s %S %b %f %a %c %d\" [Datei \/ Verzeichnis]<\/pre>\n<h5>Beispiel: Option -t<\/h5>\n<h6 style=\"\"><span style=\"font-weight: normal;\">Mithilfe der <\/span>Option -t<span style=\"font-weight: normal;\"> werden Informationen nun in Kurzform ausgegeben. Angewendet wird der Befehl <\/span>stat <span style=\"font-weight: normal;\">auf einem Verzeichnis <\/span>\/home\/hellberg\/profi-tutorials\/<span style=\"font-weight: normal;\">.<\/span><\/h6>\n<h6>Eingabe:<\/h6>\n<p>stat -t \/home\/hellberg\/profi-tutorials\/<\/p>\n<h6>Ausgabe:<\/h6>\n<p>Die Ausgabe der Informationen durch Leerzeichen getrennt auf einer Zeile.<\/p>\n<p>\/home\/hellberg\/profi-tutorials\/ 4096 8 41ed 1000 1000 803 1059700 9 0 0 1613646867 1611930934 1611930934 0 4096<\/p>\n<h3 id=\"t-1625490225331\">Formatangaben (Ausgabe)<\/h3>\n<p>In diesem Abschnitt werden die verf&uuml;gbaren <strong>Formatangaben <\/strong>f&uuml;r die <strong>Optionen -c<\/strong> und <strong>&ndash;printf<\/strong> aufgelistet. Die Formatangaben sind dabei in zwei Kategorien einzuteilen: Solche, die mit dem <strong>Dateistatus <\/strong>verwendet werden (ohne <strong>Option -f<\/strong>) und solche, die f&uuml;r <strong><a class=\"glossaryLink cmtt_Informatik\" aria-describedby=\"tt\" data-cmtooltip=\"&lt;div class=glossaryItemTitle&gt;Dateisystem&lt;\/div&gt;&lt;div class=glossaryItemBody&gt;Ein Dateisystem kontrolliert die Speicherung, das Ver&auml;ndern, L&ouml;schen und schlie&szlig;lich auch das Abrufen von Daten auf einem Speichermedium bzw.(...)&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;Filesystem&lt;\/div&gt;&lt;\/div&gt;\" href=\"https:\/\/profi-tutorials.de\/linux\/glossar\/dateisystem\/\" target=\"_blank\" data-mobile-support=\"0\" data-gt-translate-attributes='[{\"attribute\":\"data-cmtooltip\", \"format\":\"html\"}]' tabindex=\"0\" role=\"link\">Dateisysteme<\/a> <\/strong>g&uuml;ltig sind (Verwendung der <strong>Option -f<\/strong>).<\/p>\n<h4>Dateistatus<\/h4>\n<p>Es folgen die Formatangaben <strong>f&uuml;r Dateistatus<\/strong>:<\/p>\n<table data-rows=\"17\" data-cols=\"4\" data-v=\"middle\">\n<thead>\n<tr>\n<th style=\"width: 85px;\">\n<p style=\"\"><strong>Sequenz<\/strong><\/p>\n<\/th>\n<th style=\"\">\n<p style=\"\">Ausgabe<\/p>\n<\/th>\n<th style=\"width: 82px;\" colspan=\"1\" rowspan=\"1\">\n<p style=\"\">Sequenz<\/p>\n<\/th>\n<th style=\"\" colspan=\"1\" rowspan=\"1\">\n<p style=\"\">Ausgabe<\/p>\n<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td data-th=\"Sequenz\" style=\"\">%a<\/td>\n<td data-th=\"Ausgabe\" style=\"\">Oktale Zugriffsrechte<\/td>\n<td data-th=\"Sequenz\" style=\"\" colspan=\"1\" rowspan=\"1\">%A<\/td>\n<td data-th=\"Ausgabe\" style=\"\" colspan=\"1\" rowspan=\"1\">Menschenlesbare Zugriffsrechte<\/td>\n<\/tr>\n<tr>\n<td data-th=\"Sequenz\" style=\"\">%b<\/td>\n<td data-th=\"Ausgabe\" style=\"\">Anzahl reservierter Bl&ouml;cke<\/td>\n<td data-th=\"Sequenz\" style=\"\" colspan=\"1\" rowspan=\"1\">%B<\/td>\n<td data-th=\"Ausgabe\" style=\"\" colspan=\"1\" rowspan=\"1\">Gr&ouml;&szlig;e der mit %b gemeldeten Bl&ouml;cke(in Bytes)<\/td>\n<\/tr>\n<tr>\n<td data-th=\"Sequenz\" style=\"\">%C<\/td>\n<td data-th=\"Ausgabe\" style=\"\">SELinux-Sicherheitskontext-Zeichenkette<\/td>\n<td data-th=\"Sequenz\" style=\"\" colspan=\"1\" rowspan=\"1\">Cell<\/td>\n<td data-th=\"Ausgabe\" style=\"\" colspan=\"1\" rowspan=\"1\">Cell<\/td>\n<\/tr>\n<tr>\n<td data-th=\"Sequenz\" style=\"\">%d<\/td>\n<td data-th=\"Ausgabe\" style=\"\">Ger&auml;tenummer (dezimal)<\/td>\n<td data-th=\"Sequenz\" style=\"\" colspan=\"1\" rowspan=\"1\">%D<\/td>\n<td data-th=\"Ausgabe\" style=\"\" colspan=\"1\" rowspan=\"1\">Ger&auml;tenummer (hexadezimal)<\/td>\n<\/tr>\n<tr>\n<td data-th=\"Sequenz\" style=\"\" rowspan=\"1\" colspan=\"1\">%f<\/td>\n<td data-th=\"Ausgabe\" style=\"\" rowspan=\"1\" colspan=\"1\">Raw-Modus (hexadezimal)<\/td>\n<td data-th=\"Sequenz\" style=\"\" colspan=\"1\" rowspan=\"1\">%F<\/td>\n<td data-th=\"Ausgabe\" style=\"\" colspan=\"1\" rowspan=\"1\">Dateityp<\/td>\n<\/tr>\n<tr>\n<td data-th=\"Sequenz\" style=\"\" rowspan=\"1\" colspan=\"1\">%g<\/td>\n<td data-th=\"Ausgabe\" style=\"\" rowspan=\"1\" colspan=\"1\">Gruppen-ID des Besitzers<\/td>\n<td data-th=\"Sequenz\" style=\"\" colspan=\"1\" rowspan=\"1\">%G<\/td>\n<td data-th=\"Ausgabe\" style=\"\" colspan=\"1\" rowspan=\"1\">Gruppenname des Besitzers<\/td>\n<\/tr>\n<tr>\n<td data-th=\"Sequenz\" style=\"\" rowspan=\"1\" colspan=\"1\">%h<\/td>\n<td data-th=\"Ausgabe\" style=\"\" rowspan=\"1\" colspan=\"1\">Anzahl harter Verkn&uuml;pfungen<\/td>\n<td data-th=\"Sequenz\" style=\"\" colspan=\"1\" rowspan=\"1\">%i<\/td>\n<td data-th=\"Ausgabe\" style=\"\" colspan=\"1\" rowspan=\"1\">Inode-Nummer<\/td>\n<\/tr>\n<tr>\n<td data-th=\"Sequenz\" style=\"\" rowspan=\"1\" colspan=\"1\">%m<\/td>\n<td data-th=\"Ausgabe\" style=\"\" rowspan=\"1\" colspan=\"1\">Einh&auml;ngepunkt<\/td>\n<td data-th=\"Sequenz\" style=\"\" colspan=\"1\" rowspan=\"1\">Cell<\/td>\n<td data-th=\"Ausgabe\" style=\"\" colspan=\"1\" rowspan=\"1\">Cell<\/td>\n<\/tr>\n<tr>\n<td data-th=\"Sequenz\" style=\"\" rowspan=\"1\" colspan=\"1\">%n<\/td>\n<td data-th=\"Ausgabe\" style=\"\" rowspan=\"1\" colspan=\"1\">Dateiname<\/td>\n<td data-th=\"Sequenz\" style=\"\" colspan=\"1\" rowspan=\"1\">%N<\/td>\n<td data-th=\"Ausgabe\" style=\"\" colspan=\"1\" rowspan=\"1\">Dateiname in Anf&uuml;hrungsstrichen(mit R&uuml;ckverfolgung, falls symbolische Verkn&uuml;pfung)<\/td>\n<\/tr>\n<tr>\n<td data-th=\"Sequenz\" style=\"\" rowspan=\"1\" colspan=\"1\">%o<\/td>\n<td data-th=\"Ausgabe\" style=\"\" rowspan=\"1\" colspan=\"1\">Hinweis auf optimale I\/O-&Uuml;bertragungsgr&ouml;&szlig;e<\/td>\n<td data-th=\"Sequenz\" style=\"\" colspan=\"1\" rowspan=\"1\">%s<\/td>\n<td data-th=\"Ausgabe\" style=\"\" colspan=\"1\" rowspan=\"1\">Gesamtgr&ouml;&szlig;e (in Bytes)<\/td>\n<\/tr>\n<tr>\n<td data-th=\"Sequenz\" style=\"\" rowspan=\"1\" colspan=\"1\">%t<\/td>\n<td data-th=\"Ausgabe\" style=\"\" rowspan=\"1\" colspan=\"1\">Major-Ger&auml;tetyp (hexadezimal) f&uuml;r Zeichen-\/blockorientierte Spezialdateien<\/td>\n<td data-th=\"Sequenz\" style=\"\" colspan=\"1\" rowspan=\"1\">%T<\/td>\n<td data-th=\"Ausgabe\" style=\"\" colspan=\"1\" rowspan=\"1\">Minor-Ger&auml;tetyp (hexadezimal) f&uuml;r Zeichen-\/blockorientierte Spezialdateien<\/td>\n<\/tr>\n<tr>\n<td data-th=\"Sequenz\" style=\"\" rowspan=\"1\" colspan=\"1\">%u<\/td>\n<td data-th=\"Ausgabe\" style=\"\" rowspan=\"1\" colspan=\"1\">Benutzer-ID des Besitzers<\/td>\n<td data-th=\"Sequenz\" style=\"\" colspan=\"1\" rowspan=\"1\">%U<\/td>\n<td data-th=\"Ausgabe\" style=\"\" colspan=\"1\" rowspan=\"1\">Benutzername des Besitzers<\/td>\n<\/tr>\n<tr>\n<td data-th=\"Sequenz\" style=\"\" rowspan=\"1\" colspan=\"1\">%w<\/td>\n<td data-th=\"Ausgabe\" style=\"\" rowspan=\"1\" colspan=\"1\">Menschenlesbare Erstellungszeit(&ldquo;-&ldquo;, falls unbekannt)<\/td>\n<td data-th=\"Sequenz\" style=\"\" colspan=\"1\" rowspan=\"1\">%W<\/td>\n<td data-th=\"Ausgabe\" style=\"\" colspan=\"1\" rowspan=\"1\">Erstellungszeit in Sekunden seit der Unix-Epoche (&ldquo;0&rdquo;, falls unbekannt)<\/td>\n<\/tr>\n<tr>\n<td data-th=\"Sequenz\" style=\"\" rowspan=\"1\" colspan=\"1\">%x<\/td>\n<td data-th=\"Ausgabe\" style=\"\" rowspan=\"1\" colspan=\"1\">Menschenlesbare letzte Zugriffszeit<\/td>\n<td data-th=\"Sequenz\" style=\"\" colspan=\"1\" rowspan=\"1\">%X<\/td>\n<td data-th=\"Ausgabe\" style=\"\" colspan=\"1\" rowspan=\"1\">Letzte Zugriffszeit in Sekunden seit der Unix-Epoche<\/td>\n<\/tr>\n<tr>\n<td data-th=\"Sequenz\" style=\"\" rowspan=\"1\" colspan=\"1\">%y<\/td>\n<td data-th=\"Ausgabe\" style=\"\" rowspan=\"1\" colspan=\"1\">Menschenlesbare letzte Daten-Modifizierungszeit<\/td>\n<td data-th=\"Sequenz\" style=\"\" colspan=\"1\" rowspan=\"1\">%Y<\/td>\n<td data-th=\"Ausgabe\" style=\"\" colspan=\"1\" rowspan=\"1\">Letzte Daten-Modifizierungszeit in Sekunden seit der Unix-Epoche<\/td>\n<\/tr>\n<tr>\n<td data-th=\"Sequenz\" style=\"\" rowspan=\"1\" colspan=\"1\">%z<\/td>\n<td data-th=\"Ausgabe\" style=\"\" rowspan=\"1\" colspan=\"1\">Menschenlesbare letzte Status-&Auml;nderungszeit<\/td>\n<td data-th=\"Sequenz\" style=\"\" colspan=\"1\" rowspan=\"1\">%Z<\/td>\n<td data-th=\"Ausgabe\" style=\"\" colspan=\"1\" rowspan=\"1\">Letzte Status-&Auml;nderungszeit in Sekunden seit der Unix-Epoche<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>Dateisysteme<\/h4>\n<p>F&uuml;r <strong>Dateisysteme <\/strong>sind folgende Formatangaben g&uuml;ltig:<\/p>\n<table data-rows=\"7\" data-cols=\"4\" data-v=\"middle\">\n<thead>\n<tr>\n<th style=\"width: 85px;\">\n<p style=\"\"><strong>Sequenz<\/strong><\/p>\n<\/th>\n<th style=\"\">\n<p style=\"\">Ausgabe<\/p>\n<\/th>\n<th style=\"width: 82px;\" colspan=\"1\" rowspan=\"1\">\n<p style=\"\">Sequenz<\/p>\n<\/th>\n<th style=\"\" colspan=\"1\" rowspan=\"1\">\n<p style=\"\">Ausgabe<\/p>\n<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td data-th=\"Sequenz\" style=\"\">%a<\/td>\n<td data-th=\"Ausgabe\" style=\"\">Freie Bl&ouml;cke, die nicht-Superusern zur Verf&uuml;gung stehen<\/td>\n<td data-th=\"Sequenz\" style=\"\" colspan=\"1\" rowspan=\"1\">%b<\/td>\n<td data-th=\"Ausgabe\" style=\"\" colspan=\"1\" rowspan=\"1\">Gesamte Datenbl&ouml;cke im Dateisystem<\/td>\n<\/tr>\n<tr>\n<td data-th=\"Sequenz\" style=\"\">%c<\/td>\n<td data-th=\"Ausgabe\" style=\"\">Gesamte Dateiknoten im Dateisystem<\/td>\n<td data-th=\"Sequenz\" style=\"\" colspan=\"1\" rowspan=\"1\">%d<\/td>\n<td data-th=\"Ausgabe\" style=\"\" colspan=\"1\" rowspan=\"1\">Freie Dateiknoten im Dateisystem<\/td>\n<\/tr>\n<tr>\n<td data-th=\"Sequenz\" style=\"\">%f<\/td>\n<td data-th=\"Ausgabe\" style=\"\">Freie Bl&ouml;cke im Dateisystem<\/td>\n<td data-th=\"Sequenz\" style=\"\" colspan=\"1\" rowspan=\"1\">%i<\/td>\n<td data-th=\"Ausgabe\" style=\"\" colspan=\"1\" rowspan=\"1\">Dateisystem-ID (hexadezimal)<\/td>\n<\/tr>\n<tr>\n<td data-th=\"Sequenz\" style=\"\">%l<\/td>\n<td data-th=\"Ausgabe\" style=\"\">Maximale Dateinamen-L&auml;nge<\/td>\n<td data-th=\"Sequenz\" style=\"\" colspan=\"1\" rowspan=\"1\">%n<\/td>\n<td data-th=\"Ausgabe\" style=\"\" colspan=\"1\" rowspan=\"1\">Dateiname<\/td>\n<\/tr>\n<tr>\n<td data-th=\"Sequenz\" style=\"\" rowspan=\"1\" colspan=\"1\">%s<\/td>\n<td data-th=\"Ausgabe\" style=\"\" rowspan=\"1\" colspan=\"1\">Blockgr&ouml;&szlig;e (f&uuml;r schnellere &Uuml;bertragungen)<\/td>\n<td data-th=\"Sequenz\" style=\"\" colspan=\"1\" rowspan=\"1\">%S<\/td>\n<td data-th=\"Ausgabe\" style=\"\" colspan=\"1\" rowspan=\"1\">Grundlegende Blockgr&ouml;&szlig;e(f&uuml;r Blockzahlen)<\/td>\n<\/tr>\n<tr>\n<td data-th=\"Sequenz\" style=\"\" rowspan=\"1\" colspan=\"1\">%t<\/td>\n<td data-th=\"Ausgabe\" style=\"\" rowspan=\"1\" colspan=\"1\">Dateisystem-ID (hexadezimal)<\/td>\n<td data-th=\"Sequenz\" style=\"\" colspan=\"1\" rowspan=\"1\">%T<\/td>\n<td data-th=\"Ausgabe\" style=\"\" colspan=\"1\" rowspan=\"1\">Menschenlesbare Art des Dateisystems<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\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>In diesem Beitrag lernen Sie den Befehl stat kennen, welcher unter Linux- \/ UNIX-Betriebssystemen verwendet wird, um verschiedene Metadaten von Dateien und Ordnern &#8211; etwa zu Zeitstempeln, Berechtigungen, Besitzer, Gruppe und dem Dateityp &#8211; auszugeben. Die Aufgabe von stat kann dabei mithilfe von Formatangaben zudem fast beliebig angepasst werden.&nbsp; Da stat Teil des Pakets coreutils [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":7870,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"none","_seopress_titles_title":"%%post_title%% %%sep%% %%sitetitle%%","_seopress_titles_desc":"In diesem Beitrag lernen Sie den Befehl stat kennen, welcher unter Linux- \/ UNIX-Betriebssystemen verwendet wird, um Metadaten von Dateien und Ordnern auszugeben.","_seopress_robots_index":"","footnotes":""},"categories":[8,7],"tags":[],"class_list":["post-7386","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-administration","category-grundlagen"],"_links":{"self":[{"href":"https:\/\/profi-tutorials.de\/linux\/wp-json\/wp\/v2\/posts\/7386","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=7386"}],"version-history":[{"count":86,"href":"https:\/\/profi-tutorials.de\/linux\/wp-json\/wp\/v2\/posts\/7386\/revisions"}],"predecessor-version":[{"id":7873,"href":"https:\/\/profi-tutorials.de\/linux\/wp-json\/wp\/v2\/posts\/7386\/revisions\/7873"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/profi-tutorials.de\/linux\/wp-json\/wp\/v2\/media\/7870"}],"wp:attachment":[{"href":"https:\/\/profi-tutorials.de\/linux\/wp-json\/wp\/v2\/media?parent=7386"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/profi-tutorials.de\/linux\/wp-json\/wp\/v2\/categories?post=7386"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/profi-tutorials.de\/linux\/wp-json\/wp\/v2\/tags?post=7386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}