How do I change the modified time on a file in Linux?

How do I change the modified time on a file in Linux?
Answer
Touch command is used to change these timestamps (access time, modification time, and change time of a file).
  1. Create an Empty File using touch. …
  2. Change File’s Access Time using -a. …
  3. Change File’s Modification Time using -m. …
  4. Explicitly Setting Access and Modification time using -t and -d.
 

Tìm kiếm

Back
Top