The Linux command 'stat' is used for displaying status information of Linux files and file systems. In this article, we will discuss the usage of stat command with examples.
stat command syntax
The syntax of stat command is :
stat [OPTION]... FILE...
stat command examples
1. A basic example
In the simplest form, the stat command can be used by supplying a file name as an argument :
$ stat testdisk.log
Size: 1014 Blocks: 8 IO Block: 4096 regular file
Device: 805h/2053d Inode:... [More]