File: Unterschied zwischen den Versionen

Aus Foxwiki
Keine Bearbeitungszusammenfassung
KKeine Bearbeitungszusammenfassung
Zeile 3: Zeile 3:


=Übersicht=
=Übersicht=
file [Option] Filename
'''file [Option] Filename'''


=Beispiele=
=Beispiele=


  file file.c
  $ '''file file.c'''
file.c: C program text
file.c: C program text


  file program
  $ '''file program'''
program: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked  
program: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked  
    (uses shared libs), stripped
(uses shared libs), stripped


  file /dev/wd0a
  $ '''file /dev/wd0a'''
/dev/wd0a: block special (0/0)
/dev/wd0a: block special (0/0)


  file -s /dev/hda1
  $ '''file -s /dev/hda1'''
/dev/hda1: Linux/i386 ext2 filesystem
/dev/hda1: Linux/i386 ext2 filesystem


  file -s /dev/hda5
  $ '''file -s /dev/hda5'''
/dev/hda5: Linux/i386 swap file
/dev/hda5: Linux/i386 swap file


  file data.ppm
  $ '''file data.ppm'''
data.ppm: Netpbm PPM "rawbits" image data
data.ppm: Netpbm PPM "rawbits" image data


 
[[Kategorie:Linux:Benutzerverwaltung]]
 
[[Category:Linux]]

Version vom 30. Januar 2022, 23:27 Uhr

Bezeichnung

File Typ einer Datei erkennen

Übersicht

file [Option] Filename

Beispiele

$ file file.c
file.c: C program text
$ file program
program: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked 
(uses shared libs), stripped
$ file /dev/wd0a
/dev/wd0a: block special (0/0)
$ file -s /dev/hda1
/dev/hda1: Linux/i386 ext2 filesystem
$ file -s /dev/hda5
/dev/hda5: Linux/i386 swap file
$ file data.ppm
data.ppm: Netpbm PPM "rawbits" image data