Thursday, July 2, 2015

Finding the Creation Date of a file in Linux


Creation date of a file is not directly available using the popular 'ls' command . ls displays the last modified date of the file instead of creation date/time.

Then How to get the creation date of a file. Here is the solution.



  • Get the Inode value of the File using the command below

               ls -i filename


  • Use 'mount' command to find out the disk where the file resides



  • Use the Command below with above details to get File system Struct information


        debugfs -R 'stat <1045343>' /dev/mapper/lg_volume_2


Example output is given below: