Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

7
  • 3
    Are you sure you mean the creation (aka birth) time? Few systems make that information available. Maybe you're thinking of the ctime (change time) Commented Jan 10, 2017 at 13:25
  • 3
    touch newfile; cat oldfile > newfile; mv newfile oldfile Commented Jan 10, 2017 at 16:02
  • 1
    Creation time (crtime or btime/birth time) is different than ctime (change time) so that I vote for a re-open of this question that may not be a duplicate, if taken literally. I guess this is part is confusing "it does not change the first date - creation date", but we cannot know for sure, and the OP writes "CREATION", so... (and a recent enough stat does show creation time, even though, maybe not first). And if it IS/WAS a duplicate, it should have been edited for clarity before setting duplicate status IMHO. Commented Apr 9, 2022 at 12:17
  • Voting to leave closed - at the time OP posted this, stat on Linux certainly wasn't showing creation time. At the very least, this should be remain closed as unclear - OP needs to clarify which OS and filesystem this was before it should be reopened. Commented Apr 9, 2022 at 16:02
  • The OP didn't mention linux. But the fact that OP never answered the comments hints that inode change time was mixed up with creation time. Commented Apr 11, 2022 at 6:40