Friday, September 22, 2023
HomeSoftware EngineeringThe best way to Change the Timestamp of a File on Mac/Linux

The best way to Change the Timestamp of a File on Mac/Linux


You probably have a file in your machine, and also you need to change the created/modified time/date stamp, then you should utilize 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