View the Most Wanted LQ Wiki articles.
LinuxQuestions.org > Linux Wiki > Stat

From LQWiki

Jump to: navigation, search

Stat displays the status of a file or the filesystem a file is on.

To obtain information about a file:

$ stat file

To obtain information about the filesystem file is on:

$ stat -f file

Use the -c option and various format sequences to obtain tailored output or the -t format for terse (and easily parsed) output. See the man page for full details.


Personal tools