Tag Archives: time

How to hack to change the created and modified date of a file

OS X and terminal
We can do this trick with a single terminal command.

first dive into the directory where the file is stored.
touch -t YYYYMMDDhhmmss fileName.extension

Done, if the time you entered is before the original created time, both created and modified time would be changed to the new time assigned. However, if the time you entered is after the original created time, only the modified time would be affected.

eg. There is a file, test.doc, on your Desktop. Continue reading

Is malloc/calloc evaluated at runtime?

Problem:

When I compile it, it gives error: Continue reading

How to hack to change the created and modified date of your file

Terminal Code:

first dive into the directory that file sits in.

touch -t MMDDmmss fileName.extension

Done, if the time you typed is before the original created time, both created and modified time would be change to the new time assigned. However, if the time you typed is after the original created time, only the modified time would be affected.