Linux stat Command

In this tutorial we learn how to use stat commmand in Linux. stat command is stat - display file or file system status

What is Linux stat Command?

In this tutorial we learn how to use stat command in Linux. stat command is stat - display file or file system status

stat Syntax

       stat [OPTION]... FILE...

stat Examples

stat Command Manual / Help

We can use man and info command to see the manual page of stat command.

stat command also have --help option to show list of options.

To open man page for stat command we can use command below. To exit man or info page you can press q.

man stat

To open info page for stat command we can use command below.

info stat

To open help page from stat command we can run command below.

stat --help

Linux stat Command Source Code

You can find stat command source code from the folowing repositories:

You can read tutorials of related Linux commands below:

Summary

In this tutorial we learn how to use stat in Linux with practical examples. Visit our Linux Commands guide to learn more about using command line interface in Linux.