file

QNX SDP8.0Utilities ReferenceUtilities

Determine file type (POSIX, toybox)

Syntax:

file [-bhLs] [file...]

Runs on:

QNX OS

Options

-b
Be brief; don't prepend file names to output lines.
-h
Don't follow symbolic links (default).
-L
Causes symbolic links to be followed.
-s
Show block and character device contents.
file
The pathname of a file type to determine the type of.

Description:

The file utility tests each file argument in an attempt to classify it.

This utility is provided as part of the toybox package. For information on how to enable it, see toybox.

Contributing author:

Rob Landley and the toybox project (see https://landley.net/toybox/).

Page updated: