File ctime and mtime are different

Solution Verified - Updated -


  • File mtime and ctime are different
  • ls -l shows old timestamp
  • We are facing intermittent issues where the file attribute Modify does not get updated and ls -l does not show the updated timestamp even when the file contents are changed. We have a ftp job which depends on the file timestamp for fetching the files and are failing. We can see in stat that the Change attribute getting updated whenever the file contents are modified, but not the Modify attribute. The first and last line of the file also has the information about when the file was last updated.


  • Red Hat Enterprise Linux
  • Files

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content