File ctime and mtime are different

Solution Verified - Updated -

Issue

  • 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.

Environment

  • Red Hat Enterprise Linux
  • Files

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.