Cheating your buddies: How to change create date on a file.
Using this awesome trick you can change the create date of a file and show it to you boss as per requirement. Good idea to save your job.
It is not just used to change it to a time in past, you can also change it to post creation date if you need it. Here is the syntax that needs to be entered:
touch -t 20090101050202 /location/of/file/filename.png
Its really simple, we are using the touch command which is really useful and is designed to change file access and modification times. The next part of it is the number, this is the date of the file written in reverse order. 20090101050202 = YYYYMMDDhhmmss, year month day hour minute second. You can omit the seconds section, you really don’t need it.
Once as you hit return and everything is done correctly the file access time will have change to what you have feeded.
Using this awesome trick you can change the create date of a file and show it to you boss as per requirement. Good idea to save your job.
It is not just used to change it to a time in past, you can also change it to post creation date if you need it. Here is the syntax that needs to be entered:
touch -t 20090101050202 /location/of/file/filename.png
Its really simple, we are using the touch command which is really useful and is designed to change file access and modification times. The next part of it is the number, this is the date of the file written in reverse order. 20090101050202 = YYYYMMDDhhmmss, year month day hour minute second. You can omit the seconds section, you really don’t need it.
Once as you hit return and everything is done correctly the file access time will have change to what you have feeded.
Comments