Unix Question

Griff Smith ggs at ulysses.UUCP
Thu Nov 13 23:40:31 AEST 1986


>  > >> I'll make this short and sweet:
>  > >> 
>  > >>      How can one change the date/time stamp of a file?
>  > >
>  > >See touch(1) in the User Reference Manual (RTFM!).
> 
>  >    The original poster does not want to put the *current* time on
>  > the file...he wants to put *any* time on the file.  There are three
> 
> Don't be so quick to shoot down the original answer.  touch(1) can
> do exactly what you want with no need to mess with inode tables.
> 

Bell Labs people: please don't assume System V is The Only Choice.
Silly name calling like the above doesn't help what's left of our
credibility.  Yes, the System V version of "touch" allows specification
of a date-time.  It also works on any file owned by the toucher,
including directories and special files.

4BSD users: please be more specific in your questions; include the
system version if you know it.  Given that the BSD version of "touch"
only works if you have permission to append nothing to a file, I
appreciate your frustration.
-- 

Griff Smith	AT&T (Bell Laboratories), Murray Hill
Phone:		(201) 582-7736
UUCP:		{allegra|ihnp4}!ulysses!ggs
Internet:	ggs at ulysses.uucp



More information about the Comp.unix.questions mailing list