On Fri, Feb 15, 2008 at 04:59:40PM -0500, Rob Sherwood wrote: > On Fri, Feb 15, 2008 at 04:39:57PM -0500, Howard Sanner wrote: > > I have already tried apropos time, date, and file, with no likely > > suspects > > turning up. > > > > Is there a utility to modify the date & time of modification of a file? > > Or > > is there a way to have cp carry over the date & time of the original file? > > (man cp didn't turn up anything, either.) > > 'touch' is what you want. > > cp -p does what you want as well, but there are 3 different timestamps.
rsync copies over almost everything too. I suggest using rsync -Slap <src> <dest> which preserves nearly everything. There are other useful flags, but a) they're in the man page, and b) they would make the argument list less humorous. Pretty much any time I think of copying anything, it turns out that rsync does more of what I want. Ben -- Ben Stern UNIX & Networks Monkey [EMAIL PROTECTED] This post does not represent FTI, even if I claim it does. Neener neener. UM Linux Users' Group Electromagnetic Networks Microbrew Software
