Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

file

Determine file type

Syntax

file [OPTION]... FILE...

Common Options

-bDo not display filename
-iOutput MIME type
-LFollow symlinks
-zLook inside compressed files

Common Examples

file file.txt

Identify file type

file -i file.txt

Show MIME type

Related Commands

Related Tools

More Code & Dev Tools