file Linux Command
Determines and displays the file type (text, binary, image, etc.).
What does file do?
Determines and displays the file type (text, binary, image, etc.).
Syntax
file filenamePractical example
file unknown.binRelated File Management
statDisplays detailed file and filesystem information (size, permissions, timestamps).
teeReads from stdin and writes to both stdout and one or more files simultaneously.
lnCreates links between files. Use -s for symbolic (soft) links.
diffCompares two files line by line and shows the differences.
wcCounts lines, words, and characters in a file.
mkdirCreates a new directory (folder). Use -p to create nested directories.