file: Unterschied zwischen den Versionen

Aus Mikiwiki
Wechseln zu: Navigation, Suche
Zeile 22: Zeile 22:
  
 
== FAQ ==
 
== FAQ ==
 +
 +
=== Ausgabe "data" ===
 +
 +
Diese Ausgabe erscheint, wenn der Befehl "file" nichts über die Datei herausfinden konnte.
  
 
=== Ausgabe "with very long lines" ===
 
=== Ausgabe "with very long lines" ===
Zeile 35: Zeile 39:
 
* https://superuser.com/questions/91660/how-long-is-long-for-the-unix-file-command
 
* https://superuser.com/questions/91660/how-long-is-long-for-the-unix-file-command
 
* https://www.linuxquestions.org/questions/linux-newbie-8/aboout-with-very-long-lines-how-long-is-very-long-4175417737/
 
* https://www.linuxquestions.org/questions/linux-newbie-8/aboout-with-very-long-lines-how-long-is-very-long-4175417737/
 +
 +
== Weblinks ==
 +
 +
{{Weblinks}}
 +
{{url|US|Stack Exchange Inc.|eng|https://unix.stackexchange.com/questions/151008/linux-file-command-classifying-files
 +
|Linux file command classifying files|}}
 +
{{Fuss}}
 +
 +
  
  

Version vom 16. Juni 2020, 10:26 Uhr

Der Shell-Befehl file zeigt Informationen über das Dateiformat bzw. den Inhalt einer Datei.

Verwendung

Mögliche Ausgaben sind je nach Datentyp beispielsweise die folgenden:

$ file *
aaa.png:        PNG image, 373 x 621, 16-bit/color RGB, non-interlaced
bbb.odt:        OpenDocument Text
ccc.rtf:        Rich Text Format data, version 1, ANSI
ddd.jpg:        JPEG image data, JFIF standard 1.01
eee.wmv:        Microsoft ASF
fff.html:       Non-ISO extended-ASCII HTML document text, with very long lines
ggg:            directory
hhh.jpg:        JPEG image data, progressive, precision 0, 4360x420
iii.pdf:        PDF document, version 1.4
jjj.gif:        GIF image data, version 89a, 254 x 100
kkk.mpg:        MPEG sequence, v1, system multiplex
lll.bin:        POSIX shell script text executable
mmm.jpg:        JPEG image data, JFIF standard 1.01, comment: "CREATOR: gd-jpeg v1.0 (using IJ"
nnn.desktop:    ASCII text

FAQ

Ausgabe "data"

Diese Ausgabe erscheint, wenn der Befehl "file" nichts über die Datei herausfinden konnte.

Ausgabe "with very long lines"

Manche Dateiypen werden mit dem Zusatz "with very long lines" angezeigt z. B.

ASCII text, with very long lines
ISO-8859 text, with very long lines
Non-ISO extended-ASCII text, with very long lines
UTF-8 Unicode text, with very long lines

Als "sehr lang" werden offenbar Zeilen mit mehr als 300 Zeichen angesehen. Wofür diese Information gut sein soll bleibt unklar.

Weblinks

Herausgeber Sprache Webseitentitel Anmerkungen
country US.gif Stack Exchange Inc. eng Linux file command classifying files[http://wayback.archive.org/web/*/https://unix.stackexchange.com/questions/151008/linux-file-command-classifying-files wbm]