Today we’ll talk about a simple trick that could be used to change last modified date of a file. Certaainly, you’re welcome to use touch command to do it under Linux, and it will be the most simple way. But… if you don’t know what does this command do, you can try to do it under MS Windows.
If you have a Microsoft Windows system, this will not be a problem for you. All you need is to change the date on your Windows PC and then make some changes to the file you need. Then you need to upload it back to your Linux machine and you’re done. Since Windows doesn’t have any restrictions on file modification time, this trick really works. It is usually necessary to do something like this when you have to imitate that something remained unchanged for a long time :).
It is a common practice to use a different operating system to do some tricks to the current one. For example, small linux distros are used to change Windows administrator password without knowing it. Maybe I will tell you about this in my future posts. If you have physical access to your PC or server, OS restrictions are usually useless – you may do almost anything with any of your operating systems installed.