Hand putting a Linux file folder into a drawer

The stat command, included in the GNU coreutils package, provides a variety of metadata, including file size, inode location, access permissions and SELinux context, and creation and modification times, about files and filesystems. It's a convenient way to gather information that you usually need several different commands to acquire.

Installing stat on Linux

On Linux, you probably already have the stat command installed because it's part of a core utility package that's generally bundled with Linux distributions by default.


read more

Read more from our friends at Opensource.com