The stat command in Linux system displays information about the specified file. Using the stat command, you can get file name, size, block, file type, file stored device number, inode, links, uid, gid, access, modify details, file change details, original file creation details and many more.
How to Use the stat Command:
Open the terminal application (ctrl+alt+t) and run below command. Here you can replace file.txt with your real file name.
stat file.txt
To get details about several files at once, pass the filenames to stat on the command line like below.
stat file.txt file2.txt
The -t option causes stat to provide a condensed summary of the file.
stat -t file.txt
The -f option tells stat to display the filesystem that the file resides on.
stat -f file.txt
For the complete details, run below commands.
stat --h
man stat