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 filenamePractical example
stat /etc/passwdRelated File Management
lnCreates links between files. Use -s for symbolic (soft) links.
fileDetermines and displays the file type (text, binary, image, etc.).
wcCounts lines, words, and characters in a file.
teeReads from stdin and writes to both stdout and one or more files simultaneously.
vimOpens the powerful Vim text editor for editing files.
diffCompares two files line by line and shows the differences.