Examples
bash
file * # types of every file in a directory
file -i notes.txt # MIME type: text/plain; charset=utf-8
file -b script.sh # no filename (type only) — handy in scripts
file -L symlink # follow the symlink and look at the target
file -s /dev/sda1 # -s: look inside a block device (filesystem type)
file -z archive.gz # look INSIDE a compressed file