Files and folders
The stat command
Shows the full technical record of a file: size, permissions, dates and owner.
Syntax
stat <archivo>Most useful options
-fShows the filesystem statusCopy-ready examples
$ stat Documentos/tareas.txtFull record$ stat DocumentosA folder's recordYou can try them in the browser terminal: it does not touch your computer.
Typical mistakes
- It is how you check exact permissions without reading ls -l.
FAQ
Why look at the dates?
To know when a file was created or changed, very useful when debugging.
Learn to actually use it
The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.
Start the free course