

{"id":112151,"date":"2023-02-20T09:00:49","date_gmt":"2023-02-20T03:30:49","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=112151"},"modified":"2023-02-20T09:43:57","modified_gmt":"2023-02-20T04:13:57","slug":"stat-command-in-linux","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/stat-command-in-linux\/","title":{"rendered":"stat command in Linux"},"content":{"rendered":"<p>This article will teach you everything about the stat command in Linux-based operating systems. We will look at the stat command, why it is used, the syntax of the stat command, and the options used along with it.<\/p>\n<p>We will also look at some fantastic practical examples of the stat command by pairing it with various options to understand its working. So pay attention, take notes, and read to the end for the best benefits.<\/p>\n<h3>What is the stat command in linux?<\/h3>\n<p>The stat command is a command-line-based utility in the Linux-based operating systems that gives information about the file and filesystem. This information includes the file size, access permissions and user ID, group ID, and birth time access time of the file.<\/p>\n<p>The stat command can also provide the file system information. It comes in handy when we want the information on any file. It sounds similar to the ls command (with the option &#8220;-l&#8221; for long format), but it is quite different.<\/p>\n<p>The stat command also has options that specify a specific format instead of the default format for displaying information. We will take a look at these options in later sections. In a nutshell, the stat command displays detailed information about given files or file systems.<\/p>\n<h3>What is the syntax of linux stat command?<\/h3>\n<p>The syntax of the stat command is extremely simple. See for yourself.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">stat &lt;OPTIONS&gt;&lt;FILE&gt;<\/pre>\n<p>Let us take a closer look at the fields present in the syntax of the stat command.<\/p>\n<p><strong>1. &lt;OPTIONS&gt;<\/strong><\/p>\n<p>This particular field takes in a variety of options that specify how the comm command must function, format, and print the output. You can also specify more than one option in this field.<\/p>\n<p><strong>2. &lt;FILE&gt;<\/strong><\/p>\n<p>This file specifies the name of the file you want detailed information about. If the file you want to display information about is not in your current working directory, you can specify the file&#8217;s path.<\/p>\n<h3>Options used with linux stat command<\/h3>\n<p>Unlike most commands in Linux, the stat command comes with very few options. Let us take a detailed look at each.<\/p>\n<p><strong>1. -f<\/strong><\/p>\n<p>This option displays the filesystem status instead of the file status. You can also write this option as &#8220;&#8211;filesystem.&#8221;<\/p>\n<p><strong>2. -c<\/strong><\/p>\n<p>This option uses the format you specified instead of the default one. You can also write this option as &#8220;&#8211;format.&#8221;<\/p>\n<p><strong>3. -L<\/strong><\/p>\n<p>This option follows links. This option can also be written as &#8220;&#8211;dereference.&#8221;<\/p>\n<p><strong>4. -Z<\/strong><\/p>\n<p>This option prints the security context of SE Linux. This option can also be written as &#8220;&#8211;context.&#8221;<\/p>\n<p><strong>5. -t<\/strong><\/p>\n<p>This option prints the information in the terse form. You can also write this option as &#8220;&#8211;terse&#8221;.<\/p>\n<p><strong>6. &#8211;help<\/strong><\/p>\n<p>This option displays the help menu of the stat command.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/help-menu-of-the-stat-command.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-112194\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/help-menu-of-the-stat-command.webp\" alt=\"help menu of the stat command\" width=\"1076\" height=\"613\" \/><\/a><\/p>\n<p><strong>7. \u2013version<\/strong><\/p>\n<p>This option displays the version of the stat command you are using.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/version-of-the-stat-command.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-112195\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/version-of-the-stat-command.webp\" alt=\"version of the stat command\" width=\"1076\" height=\"186\" \/><\/a><\/p>\n<h3>Format specifiers for files<\/h3>\n<p>As we saw, we can use the option &#8220;-c&#8221; to specify the format we want. Here is a list of all the format specifiers you can use on files:<\/p>\n<p><strong>1. %A<\/strong> &#8211; Access rights in human-readable form<br \/>\n<strong>2. %a<\/strong> &#8211; Access rights in octal form<br \/>\n<strong>3. %B<\/strong> &#8211; The size in bytes of each block is reported by &#8220;%b.&#8221;<br \/>\n<strong>4. %b<\/strong> &#8211; Number of blocks allocated<br \/>\n<strong>5. %C<\/strong> &#8211; Security context of SE Linux<br \/>\n<strong>6. %D<\/strong> &#8211; Device number in hex format<br \/>\n<strong>7. %d<\/strong> &#8211; Device number in decimal format<br \/>\n<strong>8. %F<\/strong> &#8211; File type<br \/>\n<strong>9. %f<\/strong> &#8211; Raw mode in hex<br \/>\n<strong>10. %G<\/strong> &#8211; Group name of the owner<br \/>\n<strong>11. %g<\/strong> &#8211; GID of owner<br \/>\n<strong>12. %h<\/strong> &#8211; Number of hard links<br \/>\n<strong>13. %i<\/strong> &#8211; Inode number<br \/>\n<strong>14. %n<\/strong> &#8211; File name<br \/>\n<strong>15. %o<\/strong> &#8211; IO block size<br \/>\n<strong>16. %s<\/strong> &#8211; Total size<br \/>\n<strong>17. %T<\/strong> &#8211; Minor device type in hex format<br \/>\n<strong>18. %t<\/strong> &#8211; Major device type in hex format<br \/>\n<strong>19. %U<\/strong> &#8211; Username of the owner<br \/>\n<strong>20. %u<\/strong> &#8211; UID of the owner<br \/>\n<strong>21. %X<\/strong> &#8211; Time of last access as seconds since Epoch<br \/>\n<strong>22. %x &#8211;<\/strong> Time of last access<br \/>\n<strong>23. %Y<\/strong> &#8211; Time of last modification as seconds since Epoch<br \/>\n<strong>24. %y<\/strong> &#8211; Time of last modification<br \/>\n<strong>25. %Z<\/strong> &#8211; Time of last change as seconds since Epoch<br \/>\n<strong>26. %z<\/strong> &#8211; Time of last change<\/p>\n<h3>Format specifiers for filesystems<\/h3>\n<p>Similar to format specifiers for files, we have format specifiers for filesystems that we can use with the option &#8220;-c&#8221; Here is a list of all the format specifiers you can use on filesystems:<\/p>\n<p><strong>1. %a &#8211;<\/strong> Free blocks available to non-superuser<br \/>\n<strong>2. %b<\/strong> &#8211; Total data blocks in the file system<br \/>\n<strong>3. %c<\/strong> &#8211; Total file nodes in the file system<br \/>\n<strong>4. %C<\/strong> &#8211; security context of SE Linux<br \/>\n<strong>5. %d &#8211;<\/strong> Free file nodes in the file system<br \/>\n<strong>6. %f<\/strong> &#8211; Free blocks in the file system<br \/>\n<strong>7. %i<\/strong> &#8211; File System id in hex<br \/>\n<strong>8. %l<\/strong> &#8211; Maximum length of file names<br \/>\n<strong>9. %n<\/strong> &#8211; File name<br \/>\n<strong>10. %T<\/strong> &#8211; Type in human-readable form<\/p>\n<h3>Understanding the output of linux stat command<\/h3>\n<p>Before we look at how to use the various options of the stat command, let us understand the fields in the output of the stat command.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/understanding-the-output-of-the-stat-command.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-112196\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/understanding-the-output-of-the-stat-command.webp\" alt=\"understanding the output of the stat command\" width=\"1076\" height=\"189\" \/><\/a><\/p>\n<p>In the output shown above, there are various fields like file, size, change, birth, etc. Let us take a brief look at each field and what information it gives.<\/p>\n<p><strong>1. File<\/strong><\/p>\n<p>This particular field displays the name of the file. This name is the same as the name we passed to stat on the command line. However, the name can be different if we look at a symbolic link.<\/p>\n<p><strong>2. Size<\/strong><\/p>\n<p>This field displays the size of the file. By default, the size is represented in bytes.<\/p>\n<p><strong>3. Blocks<\/strong><\/p>\n<p>This field represents the number of filesystem blocks the file requires to be stored on the hard drive.<\/p>\n<p><strong>4. IO block<\/strong><\/p>\n<p>This field represents the size of a filesystem block.<\/p>\n<p><strong>5. File type<\/strong><\/p>\n<p>This field represents the type of object the metadata describes. It is usually a directory or file. However, we can sometimes deal with links, pipes, sockets, etc.<\/p>\n<p><strong>6. Device<\/strong><\/p>\n<p>This field represents the device number in hexadecimal and decimal formats. The device number is the ID of the hard drive on which the file is stored.<\/p>\n<p><strong>7. Inode<\/strong><\/p>\n<p>As the name suggests, this field represents the inode number. This number is the ID of this inode. A file is uniquely identified using the Inode number and the device number.<\/p>\n<p><strong>8. Links<\/strong><\/p>\n<p>This field represents the number of hard links pointed to this file. Every time a hard link is generated or deleted, this number will be adjusted up or down. Whenever it reaches zero, the file itself has been deleted, and the inode is removed.<\/p>\n<p><strong>9. Access<\/strong><\/p>\n<p>This field represents the file permissions. Permissions are shown in both octal and traditional &#8220;read, write and execute&#8221; forms.<\/p>\n<p><strong>10. UID<\/strong><\/p>\n<p>This field represents the user identification number and account name of the owner.<\/p>\n<p><strong>11. GID<\/strong><\/p>\n<p>This field represents the group identification number and account name of the owner.<\/p>\n<p><strong>12. Access<\/strong><\/p>\n<p>This field represented the access timestamp when the file was last accessed.<\/p>\n<p><strong>13. Modify<\/strong><\/p>\n<p>This field represented the modification timestamp when the file&#8217;s contents were last modified.<\/p>\n<p><strong>14. Change<\/strong><\/p>\n<p>This field represents the change timestamp. This was when the file&#8217;s attributes or contents were last changed.<\/p>\n<p><strong>15. Birth<\/strong><\/p>\n<p>This field shows the original creation date of the file.<\/p>\n<p>Now, since we have covered the theory and fundamentals regarding the stat command, let us look at some fantastic examples of the comm command in the terminal of ubuntu 20.04.<\/p>\n<h3>Displaying the filesystem information<\/h3>\n<p>If you want to display information regarding the filesystem, run the stat command by pairing it with the option &#8220;-f&#8221; as shown:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">stat -f &lt;filename&gt;<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/displaying-the-filesystem-information.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-112197\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/displaying-the-filesystem-information.webp\" alt=\"displaying the filesystem information\" width=\"1076\" height=\"211\" \/><\/a><\/p>\n<p>Let us understand the different fields in the output shown above.<\/p>\n<p><strong>1. File:<\/strong> This field displays the name of the file.<\/p>\n<p><strong>2. ID:<\/strong> This field displays the file system ID in hexadecimal format.<\/p>\n<p><strong>3. Namelen<\/strong>: This field represents the maximum length of a file name.<\/p>\n<p><strong>4. Fundamental block size:<\/strong> It is the total size of each block on the file system.<\/p>\n<p><strong>5. Blocks:<\/strong><\/p>\n<ul>\n<li><strong>Total:<\/strong> It is the total number of blocks in the file system<\/li>\n<li><strong>Free<\/strong>: It is the total number of free blocks in the file system<\/li>\n<li><strong>Available<\/strong>: It is the total number of free blocks available for non-root users<\/li>\n<\/ul>\n<p><strong>6. Inodes:<\/strong><\/p>\n<ul>\n<li><strong>Total<\/strong>: It is the total number of inodes in the file system.<\/li>\n<li><strong>Free<\/strong>: It is the total number of free inodes in the file system.<\/li>\n<\/ul>\n<h3>Using the stat command with multiple files<\/h3>\n<p>If you want to get the detailed information for multiple files, all you have to do is specify multiple filenames separated by a space as shown below:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">stat &lt;filename1&gt; &lt;filename2&gt;<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/usingthe-stat-command-with-multiple-files.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-112198\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/usingthe-stat-command-with-multiple-files.webp\" alt=\"using the stat command with multiple files\" width=\"1075\" height=\"303\" \/><\/a><\/p>\n<h3>Dereferencing Symlinks<\/h3>\n<p>If we provide the stat command with a symlink, it will give the information about the symbolic link instead of the original file. Here is an example:<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/dereferencing-symlinks.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-112200\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/dereferencing-symlinks.webp\" alt=\"dereferencing symlinks\" width=\"1076\" height=\"195\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>However, if u want to follow or dereference the symbolic and display information about the file, execute the stat command by pairing it with the option &#8220;-L&#8221; as shown:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">stat -L &lt;filename&gt;<\/pre>\n<p>Here is the same example shown, except this time, we dereference the symlink:<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/example-of-dereferencing-symlinks.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-112199\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/example-of-dereferencing-symlinks.webp\" alt=\"example of dereferencing symlinks\" width=\"1076\" height=\"223\" \/><\/a><\/p>\n<h3>Customizing the output<\/h3>\n<p>The stat command allows us to customize the output instead of using the default format. There are two ways we can customize the output.<\/p>\n<p>The first method uses the option &#8220;-C&#8221; or &#8220;format&#8221;. Providing multiple files to the stat command with the &#8211;format option in this method will automatically add a new line after each operand&#8217;s output. Use the syntax shown:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">stat --format='&lt;format specifier&gt;' &lt;filename&gt;<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/customizing-the-output.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-112201\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/customizing-the-output.webp\" alt=\"customizing the output\" width=\"1076\" height=\"196\" \/><\/a><\/p>\n<p>In the above output, the format specifier \u201c%n\u201d simply prints the name of the file.<\/p>\n<p>The second method to print a customized output is to use the &#8220;&#8211;print&#8221; option. Using this method, we can also provide trailing characters to the format. For example, if you want to add a new line after each line output, we can use the escape sequence &#8220;\\n&#8221; following characters with a backslash. Use the following syntax:<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/adding-a-new-line-after-each-line-output.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-112202\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/adding-a-new-line-after-each-line-output.webp\" alt=\"adding a new line after each line output\" width=\"1076\" height=\"225\" \/><\/a><\/p>\n<h3>Displaying information in the terse form<\/h3>\n<p>If you want to display information in the terse form, all you have to do is to execute the stat command by combining it with the option &#8220;-t,&#8221; as shown:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">stat -t &lt;filename&gt;<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/displaying-information-in-the-terse-form.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-112203\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/displaying-information-in-the-terse-form.webp\" alt=\"displaying information in the terse form\" width=\"1076\" height=\"142\" \/><\/a><\/p>\n<h3>Understanding timestamps<\/h3>\n<p>Before we conclude, let us understand the timestamps in the output of the stat command. Usually, the timestamps show the time the file was created from the UTC timezone.<\/p>\n<p>Don&#8217;t get duped by the name. It is very simple to understand if the value is positive, then the file is created ahead of the UTC timezone. If at all the value is negative, the file is created before the UTC timezone.<\/p>\n<p>For example, in the output shown below, the timestamp is &#8220;+0530&#8221;. This means the file is created 5 hours and 30 minutes ahead of UTC time.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/understanding-timestamps.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-112204\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/understanding-timestamps.webp\" alt=\"understanding timestamps\" width=\"1076\" height=\"206\" \/><\/a><\/p>\n<h3>Summary<\/h3>\n<p>As you have seen, the stat command is a simple yet powerful and useful tool that gives detailed information about the file and filesystem.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article will teach you everything about the stat command in Linux-based operating systems. We will look at the stat command, why it is used, the syntax of the stat command, and the options&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":112205,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[27252],"class_list":["post-112151","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-stat-command-in-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>stat command in Linux - DataFlair<\/title>\n<meta name=\"description\" content=\"stat command in linux gives detailed information about the file and filesystem. See its syntax, various options and format specifiers.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/stat-command-in-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"stat command in Linux - DataFlair\" \/>\n<meta property=\"og:description\" content=\"stat command in linux gives detailed information about the file and filesystem. See its syntax, various options and format specifiers.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/stat-command-in-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-20T03:30:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-20T04:13:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/linux-stat-command.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"stat command in Linux - DataFlair","description":"stat command in linux gives detailed information about the file and filesystem. See its syntax, various options and format specifiers.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/stat-command-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"stat command in Linux - DataFlair","og_description":"stat command in linux gives detailed information about the file and filesystem. See its syntax, various options and format specifiers.","og_url":"https:\/\/data-flair.training\/blogs\/stat-command-in-linux\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2023-02-20T03:30:49+00:00","article_modified_time":"2023-02-20T04:13:57+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/linux-stat-command.webp","type":"image\/webp"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"11 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/stat-command-in-linux\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/stat-command-in-linux\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"stat command in Linux","datePublished":"2023-02-20T03:30:49+00:00","dateModified":"2023-02-20T04:13:57+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/stat-command-in-linux\/"},"wordCount":1751,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/stat-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/linux-stat-command.webp","keywords":["stat command in Linux"],"articleSection":["Linux Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/stat-command-in-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/stat-command-in-linux\/","url":"https:\/\/data-flair.training\/blogs\/stat-command-in-linux\/","name":"stat command in Linux - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/stat-command-in-linux\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/stat-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/linux-stat-command.webp","datePublished":"2023-02-20T03:30:49+00:00","dateModified":"2023-02-20T04:13:57+00:00","description":"stat command in linux gives detailed information about the file and filesystem. See its syntax, various options and format specifiers.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/stat-command-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/stat-command-in-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/stat-command-in-linux\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/linux-stat-command.webp","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/linux-stat-command.webp","width":1200,"height":628},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/stat-command-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Linux Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/linux\/"},{"@type":"ListItem","position":3,"name":"stat command in Linux"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team creates expert-level guides on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our goal is to empower learners with easy-to-understand content. Explore our resources for career growth and practical learning.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam1\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/112151","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=112151"}],"version-history":[{"count":3,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/112151\/revisions"}],"predecessor-version":[{"id":112206,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/112151\/revisions\/112206"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/112205"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=112151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=112151"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=112151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}