Tuesday, April 23, 2024
HomeSoftware EngineeringMethods to Change the Timestamp of a File on Mac/Linux

Methods to Change the Timestamp of a File on Mac/Linux


When you have a file in your machine, and also you need to change the created/modified time/date stamp, then you should use the contact command.

contact -t 202202011308.57 someFile.jpg

Within the above instance, the timestamp can be modified to <meta charset="utf-8">2022-02-01 13:08:57.

Merely take away all non-decimal characters and place a interval earlier than the seconds.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments