How Do You Change a Timestamp on a File in Linux?
Contents

How do I change the modified time of a file?

You can manually change the Last Modified Date/Time for a file using a free software called Attribute Changer from You will need to remember the modified date/time of your presentation file, modify the file and then use Attribute Changer to set the modified date/time to the previous one.

How do I change Ctime in Linux?

The ctime of a file is updated when any of the metadata is changed.
…
To change the ctime of a file, you need to do one of the following:

  1. Set the system time to the ctime you want to impose, then touch the file, then reset the system time.
  2. Modify the kernel to add an interface to change the ctime.
Elena Rostova

Elena Rostova

Lead Health, Wellness & Medical Journalist

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.

Share this article
Twitter Facebook Pinterest