Bash find file creation date




















Linux filesystems are not required to store the creation time but some does, however, like ext4. That's why most linux command don't include creation time based options. So, when you want to find file relative to a date, you have to specify which date you're talking about. There is several options that can be used to find files and folders relative to a date.

If you like what you are reading, please consider buying us a coffee or 2 as a token of appreciation. We are thankful for your never ending support. Does this work on files that were created on a different server but have been copied to the server where I can issue the above commands on CLI? As of at least e2fsprogs version 1. This is a correct observation, may be the time on the test machine was not correct, we will find more about this, using a new file.

Have a question or suggestion? Please leave a comment to start the discussion. Please keep in mind that all comments are moderated and your email address will NOT be published. Save my name, email, and website in this browser for the next time I comment. Notify me of followup comments via e-mail. After getting the inode number of file, Use debugfs command with inode number stats following by disk path. Find the entry of crtime in above output.

This is the actual file creation time. Please suggest appropriate solution for this. On my system, which is Ubuntu The atime field is also incorrect.

Save my name, email, and website in this browser for the next time I comment. Facebook Twitter Instagram. TecAdmin Home Ubuntu



0コメント

  • 1000 / 1000