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

Share

Related posts:

  1. how to change system date in linux
  2. Unix Basic Commands
  3. Compression in Unix

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Like us in Google +