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 status

Copy-ready examples

$ stat Documentos/tareas.txtFull record
$ stat DocumentosA folder's record

You 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.

Related commands

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