GO KALI FREE
File Management

stat Linux Command

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

What does stat do?

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

Syntax

stat filename

Practical example

stat /etc/passwd

Related File Management

ln

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

file

Determines and displays the file type (text, binary, image, etc.).

wc

Counts lines, words, and characters in a file.

tee

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

vim

Opens the powerful Vim text editor for editing files.

diff

Compares two files line by line and shows the differences.