tinyapps.org / blog


Display atime, ctime, and mtime for a file #

$ stat foo
  File: foo
  Size: 221       	Blocks: 8          IO Block: 4096   regular file
Device: 801h/2049d	Inode: 540949      Links: 1
Access: (0700/-rwx------)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2006-12-04 07:00:00.000000000 -1000
Modify: 2006-12-04 07:00:00.000000000 -1000
Change: 2010-05-08 10:01:29.000000000 -1000

stat also accepts wildcards: $ stat *.txt

/nix | May 08, 2010


Subscribe or visit the archives