PROPHET/OS
NAME
file: says what each file is, by its content alone and never by its name
SYNOPSIS
file <path>...
DESCRIPTION
Says what each file is, by its content alone and never by its name: its first 512 bytes through libprophet_mime (<mime/mime.h>), the MIME type of what they hold. A program image is application/x-prophet-program, a picture image/png or image/jpeg, a sound audio/wav or audio/mpeg, an archive application/zip or application/gzip; text is valid UTF-8 without a NUL, a script text that starts with #!. What the bytes do not say for certain is application/octet-stream, never a guess: C source and plain text are both text/plain. A directory is inode/directory.
EXAMPLE
$ file /system/config/shell.conf /system/config/shell.conf: text/plain