linux:stat_linux
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| linux:stat_linux [2022-02-23 09:48:20] – angelegt manfred | linux:stat_linux [2024-05-04 20:19:54] (aktuell) – manfred | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| ====== stat (Linux) ====== | ====== stat (Linux) ====== | ||
| + | |||
| + | Dateigröße in Byte ausgeben //(ähnlich wie '' | ||
| + | [root@Linux ~]# stat -c ' | ||
| + | 16 | ||
| + | |||
| + | [root@Linux ~]# stat -c '%s %n' / | ||
| + | 16 / | ||
| + | |||
| + | [root@Linux ~]# stat -c '%s %N' / | ||
| + | 16 '/ | ||
| [root@Linux ~]# stat / | [root@Linux ~]# stat / | ||
| Zeile 28: | Zeile 38: | ||
| [root@Linux ~]# stat -c %Z / | [root@Linux ~]# stat -c %Z / | ||
| 1604431511 | 1604431511 | ||
| + | |||
| + | [root@Linux ~]# stat -c "%Y %W" Test.webm | ||
| + | 1713591667 1713591054 | ||
| + | |||
| + | so kann man sehen, wieviel Zeit zwischen Dateierstellung und der letzten Datenänderung in der Datei, vergangen ist (wie lange es gedauert hat, die Datei zu schreiben); hier sind es 613 Sekunden gewesen: | ||
| + | [root@Linux ~]# stat -c "%Y %W" Test.webm | awk ' | ||
| + | 613 | ||
/home/http/wiki/data/attic/linux/stat_linux.1645609700.txt · Zuletzt geändert: von manfred
