ls show last modified date code example
Example 1: linux show last modified time of file
stat myfilename.txt | grep "Modify"
Example 2: linux see when file created
stat foo.txt
File: `foo.txt'
Size: 239 Blocks: 8 IO Block: 4096 regular file
Device: 900h/2304d Inode: 121037111 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 1000/ adrian) Gid: ( 100/ users)
Access: 2011-10-26 13:57:15.000000000 -0600
Modify: 2011-10-26 13:57:15.000000000 -0600
Change: 2011-10-26 13:57:15.000000000 -0600
Birth: -