set file modified date time in linux – ubuntu

How to set file modified date time in linux – ubuntu

Asked on April 27, 2018 in info.
Add Comment
1 Answer(s)
Best answer

 

touch -a -m -t YYYYMMDDHHMM.SS filename

For example:

touch -a -m -t 201804261824.09 filename.doc

For more information, follow the reference url.

https://blog.eduguru.in/linux-2/changing-a-files-date-created-and-last-modified-attributes-in-linux

 

 

Answered on April 27, 2018.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.