How do I edit a file without changing the timestamp in Linux?

Đinh Yến

New member
How do I edit a file without changing the timestamp in Linux?
Answer
If you want change the contents of files without changing its timestamps, there is no direct way to do it. But it is possible! We can
use one of the touch command’s option -r (reference) to preserve file timestamps after editing or modifying it.
 

Tìm kiếm

Back
Top