file

Linux · Files · available in the simulator

What it does

Determines file type by inspecting its contents.

Syntax

file [opciones] archivo...

Options and parameters

  • -i

    Outputs MIME type strings.

    file -i imagen.png
  • -b

    Brief mode; displays only the type, omitting the file name.

  • -L

    Follows symbolic links.

Usage examples

  • file imagen.png
  • file -i documento.pdf
  • file foto.png
  • file -i archivo
  • file -i imagen.png
Practise file

Related commands