How do I change the modified time of a file in Unix?

Danh Trịnh

New member
How do I change the modified time of a file in Unix?
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.
19 нояб. 2012 г.
 

Tìm kiếm

Back
Top