find > total

W

Waldschrahdt

Aktives Mitglied
Thread Starter
Dabei seit
28.05.2007
Beiträge
338
Reaktionspunkte
31
Mit dem folgenden terminal-Befehl bekomme ich eine Auflistung, in der ab und zu "total" mit einer Zahlenangabe zwischen 0 und zigtausend steht, die ich nicht verstehe, da sie (für mich!) in keinem Zusammenhang zur Liste selbst zu stehen scheint.
find / -name 'DATEI' -exec ls -l "{}" \; 2> /dev/null
ergibt (u.a.):
total 0
drwxrwxr-x 7 root admin 238 29 Sep 2014 Contents
-rwxrwxr-x
1 root admin 25424 17 Okt 2014 /Applications/GarageBand.app/Contents/Library/Spotlight/LogicX_MDImport.mdimporter/Contents/MacOS/LogicX_MDImport
total 0
drwxrwxr-x 7 root admin 238 29 Sep 2014 Contents
-rwxrwxr-x
1 root admin 48080 17 Okt 2014 /Applications/GarageBand.app/Contents/PlugIns/MIDI Device Plug-ins/Logic Remote.bundle/Contents/MacOS/Logic Remote
-rw-rw-r--
1 root admin 15273 29 Sep 2014 /Applications/GarageBand.app/Contents/PlugIns/MIDI Device Plug-ins/Logic Remote.bundle/Contents/Resources/Logic Remote.png
-rw-rw-r--
1 root admin 37495 29 Sep 2014 /Applications/GarageBand.app/Contents/PlugIns/MIDI Device Plug-ins/Logic Remote.bundle/Contents/Resources/Logic
Und noch ein Zahlen-Problem: Was bedeuten die Zahlen 7 oder 1 vor root und die anderen hinter admin?
 
man ls

-> total: siehe bei option -l
-> 7/1: siehe Abschnitt "The Long Format"
Schau ob es eine Datei oder ein Ordner ist und dann schaust du in den Ordner - man kommt dann meistens von selbst drauf. :p
 
  • Gefällt mir
Reaktionen: Waldschrahdt
Olivetti,
stimmt! Aber die Rechnerei bei "total" (option -l) ist schon (jednefalls für mich) gewöhnungsbedürftig! Ich wäre nicht darauf gekommen, das hier zu suchen! Danke für den Hinweis!
 
Zurück
Oben Unten