Saturday, July 25, 2009

How to change file modification date in linux

if your system date is far front than the files that are copied in to your system, you have to modify the file date . for file modification in linux, it is very simple

use touch *.
It will modify the date and time of all the files in the current directory.

If you have multiple files and directories,

you have to use find command in unix in that particular directory

find . -name "*.*"|xargs touch *

This command will change the file modification date and so everthing will be fine

No comments:

Post a Comment