[OpenIndiana-discuss] using touch ... whats wrong here

James Carlson carlsonj at workingcode.com
Thu Dec 3 13:23:32 UTC 2015


On 12/03/15 04:56, Peter Tribble wrote:
> You're mixing the various timestamps.

Indeed; that's the problem.

> access, shown by ls -lu
> modify (of data), shown by ls -l
> creation (or modify metadata), shown by ls -lc

Perhaps a nit, but one I think is important.  UNIX (including
OpenIndiana) does not keep track of file or directory "creation" time.
The 'ctime' element tracks the last attribute change time.  There's no
way (in UNIX) of knowing when a file was created.

And, yes, the OP should be using the file's mtime (the "-newer" option).
 The attribute change time is rarely what you want.  :-/

-- 
James Carlson         42.703N 71.076W         <carlsonj at workingcode.com>



More information about the openindiana-discuss mailing list