mv command and file-timestamps

Hi all,

I need help to find out if it is possible (if so, how? :smiley: ) to move a hard link to a given file without making the main file i-node modification time change.

That is:
I have a file myFile.txt ,
and I have a link myLink.dat to that file (obtained by: ln myFile.txt myLink.dat).
I have to move the link: mv myLink.dat ../ without changing the modification time of the i-node for the file "myFile.txt".

Is it possible? :confused:

Many thanks!! :slight_smile:

Gian

I don't think that the modification time for the inode should change when you move a file. It is only the directory inode timestamps that should change.

Guys, please correct me if I'm wrong.