GO KALI FREE
File Management

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 filename

Practical example

file unknown.bin

Related File Management

stat

Displays detailed file and filesystem information (size, permissions, timestamps).

tee

Reads from stdin and writes to both stdout and one or more files simultaneously.

ln

Creates links between files. Use -s for symbolic (soft) links.

diff

Compares two files line by line and shows the differences.

wc

Counts lines, words, and characters in a file.

mkdir

Creates a new directory (folder). Use -p to create nested directories.