stat do?display detailed file status — size, permissions, timestamps, inode.
▸ Explain your own stat command →$ stat file.txt
$ stat -L link
$ stat -t /etc/hosts
| -c | use the given custom output format |
| -f | report on the filesystem the file lives on, not the file |
| -t | terse output — one line of raw numbers |
| -L | follow symlinks — stat the file they point to |
| --format | use the given output format (add a trailing newline) |
| --printf | like --format, but interpret backslash escapes and add no newline |
| --dereference | follow symlinks |
Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.