Linux Filesystem Cheat Sheet/Show detailed file metadata

Inspect inode, permissions, timestamps, and ownership.

Section: Listing and Inspection

Show detailed file metadata

bash
bash
stat path/to/file

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Listing and Inspection
Long listing with human sizes
Show detailed directory contents with human-readable sizes.
OpenIn sheetbashsame section
List files sorted by modification time
Show newest files first.
OpenIn sheetbashsame section
Show directory tree to a depth
Visualize nested files and directories.
OpenIn sheetbashsame section
Detect file type
Show MIME-like or content-based type information.
OpenIn sheetbashsame section
Print working directory
Show the absolute path of the current directory.
Create nested directories
Create a directory path including missing parents.