stat

Linux · System · available in the simulator

What it does

Displays detailed file status: size, permissions, inode, and timestamps.

Syntax

stat [opciones] archivo...

Options and parameters

  • -c

    Uses the specified format instead of the default.

    stat -c '%s %n' archivo.txt
  • -f

    Displays file system status instead of file status.

  • -L

    Follows links.

Usage examples

  • stat -c '%s %n' archivo.txt
Practise stat

Related commands