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

后端 未结 12 1751
有刺的猬
有刺的猬 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条回答
  •  情深已故
    2020-11-28 23:42

    As @mikyra explained, creation date time is not stored anywhere.

    All the methods above are nice, but if you want to quickly get only last modify date, you can type:

    ls -lit /path
    

    with -t option you list all file in /path odered by last modify date.

提交回复
热议问题