How do i check when a file was last modified, accessed, created on redhat?



  • Link to man page for stat: https://www.lightnetics.com/post/4363

    $ stat /etc/hosts
      File: ‘/etc/hosts’
      Size: 0         	Blocks: 0          IO Block: 4096   regular empty file
    Device: fd00h/64768d	Inode: 34228226    Links: 1
    Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
    Context: system_u:object_r:net_conf_t:s0
    Access: 2018-01-29 08:10:43.106372388 +0000
    Modify: 2018-01-29 08:10:42.198401613 +0000
    Change: 2018-01-29 08:10:42.198401613 +0000
     Birth: -
    

 

© Lightnetics 2018