Search This Blog

Linux Check atime mtime ctime of a file or directory

  • On Linux:
    • Check atime (date time):
              stat -c %x 123.txt
            
              2012-08-10 13:22:16.414889863 +1000
            
    • Check atime (seconds):
              stat -c %X 123.txt
            
              1344568936
            
    • Check mtime (date time):
              stat -c %y 123.txt
            
              2012-08-10 13:22:16.414889863 +1000
            
    • Check mtime (seconds):
              stat -c %Y 123.txt
            
              1344568936
            
    • Check ctime (date time):
              stat -c %z 123.txt
            
              2012-08-10 13:22:16.414889863 +1000
            
    • Check ctime (seconds):
              stat -c %Z 123.txt
            
              1344568936
            

No comments:

Post a Comment