linux + change/edit file without effecting on file date

Posted by yael on Server Fault See other posts from Server Fault or by yael
Published on 2012-12-02T21:22:05Z Indexed on 2012/12/02 23:09 UTC
Read the original article Hit count: 253

Filed under:
|
|
|

I want to edit some file in my linux for example

ls -ltr /etc/some_file

-rw-r--r-- 1 root root 188 Jul  1  2010 sysstat

.

       echo "Server101_IP=187.0.98.4" >> /etc/some_file

.

I expect to get the following date:

 ls -ltr /etc/some_file

-rw-r--r-- 1 root root 188 Jul  1  2010 sysstat

but the date & time of this file must be not change !

I just want to edit file but I Wondering how to change the file without effect on the date & time of the file - is it possible ?

© Server Fault or respective owner

Related posts about linux

Related posts about time