Awesome Trick | Change a file without affecting its modified time | Linux & Windows

Опубликовано: 23 Февраль 2025
на канале: GK Codelabs
1,074
19

Hello everyone,
If you want to edit a file but secretly do not want to update the modified date or the timestamp of that file, here is a simple trick for you.
We have explained this trick in 2 ways with which you can perform this on both Linux and Windows platforms.
Linux Demo: 00:34
Windows Demo: 03:08
Please watch the video completely we have demonstrated how to modify the file and restore the timestamp, visually on both Windows and Linux environments.
You can refer to below commands and links, the uses of which are explained in the video.
Powershell download link : https://www.microsoft.com/en-in/downl...
Powershell command: (Get-Item file1.txt).LastWriteTime=$(Get-Date "23/02/2018 07:00 pm")
Please visit us @ http://www.gkcodelabs.com/
Write to us @ [email protected], [email protected]