How to get file creation date/time in Bash/Debian?

后端 未结 12 1760
有刺的猬
有刺的猬 2020-11-28 23:00

I\'m using Bash on Debian GNU/Linux 6.0. Is it possible to get the file creation date/time? Not the modification date/time. ls -lh a.txt and stat -c %y a.

12条回答
  •  萌比男神i
    2020-11-28 23:39

    Another trick to add to your arsenal is the following:

    $ grep -r "Copyright" //src
    

    Generally speaking, if one changes a file they should claim credit in the “Copyright”. Examine the results for dates, file names, contributors and contact email.

    example grep result:

    //src/someobject.h: * Copyright 2007-2012  (at)>
    

提交回复
热议问题