Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change file creation date

Can I change creation date of some file using Python in Linux?

like image 262
Max Frai Avatar asked May 20 '09 12:05

Max Frai


People also ask

How can I change the Created date of a file?

You can modify the date created by copying a file. The file's created date becomes the modified date and the current date (when the file is copied) becomes the created date. You can copy a file on your PC to check.

Can you fake a file creation date?

Unfortunately, this isn't possible. You can view certain and change certain file attributes in File Explorer, but you can't change the last viewed, edited, or modified dates.

Can you change creation date on PDF?

The only way to change the creation date of your PDF file to a date other than the current date is to set your computer clock to the desired date before removing the file properties.


1 Answers

Linux and Unix file system stores :

File access, change and modification time (remember UNIX or Linux never stores file creation time, this is favorite question asked in UNIX/Linux sys admin job interview)

Understanding UNIX / Linux file systems

like image 155
Ólafur Waage Avatar answered Oct 11 '22 12:10

Ólafur Waage