to see more info on a file than ls shows
usage
stat filename
for example stat tqslconfig.tbk
shows the following
File: tqslconfig.tbk
Size: 13448 Blocks: 32 IO Block: 4096 regular
file
Device: 0,40 Inode: 8517713 Links: 1
Access: (0644/-rw-r–r–) Uid: ( 1000/ afleak) Gid: ( 1001/
afleak)
Access: 2026-01-01 08:37:44.907333794 -0600
Modify: 2025-06-04 10:22:15.429786271 -0500
Change: 2025-06-04 10:22:15.429786271 -0500
Birth: 2025-06-04 10:22:15.416464773 -0500
command line switches
-c for formatting optoms For example:
stat -c %y tqslconfig.tbk
shows just the files modification time
-c %x shows just the access time
stat -f
shows info about the file system that a file resides on. for example:
stat -f tqslconfig.tbk
File: “tqslconfig.tbk”
ID: fb3226274dc29b25 Namelen: 255 Type: btrfs
Block size: 4096 Fundamental block size: 4096
Blocks: Total: 477975296 Free: 186214323 Available: 185490267
Inodes: Total: 0 Free: 0