Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-crg!rutgers!clyde!cbatt!ihnp4!ihlpf!straka From: straka@ihlpf.UUCP (Straka) Newsgroups: comp.unix.questions Subject: Re: Unix Question Message-ID: <850@ihlpf.UUCP> Date: Thu, 13-Nov-86 09:33:47 EST Article-I.D.: ihlpf.850 Posted: Thu Nov 13 09:33:47 1986 Date-Received: Sun, 16-Nov-86 00:13:22 EST References: <249@sjuvax.UUCP> <808@mtund.UUCP> <4287@umcp-cs.UUCP> Distribution: net Organization: AT&T Bell Labs, Naperville, IL Lines: 25 > In article <808@mtund.UUCP> adam@mtund.UUCP (Adam V. Reed) writes: > >> 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 ... > want; it will set the access and modify times to whatever you > wish, and set the inode change time to the current time. See > the manual entry. > If you need to set the inode change time, you will have to > fool with the raw disk device. If you really need to do so, No, no, no. 'touch' provides the current time stamp as a *default*. The syntax (at least on SVR2) for touch is: touch [ -amc ] [ mmddhhmm[yy] ] files where -a = access time stamp only -m = modification time only -c = don't create file if non-existent This means that you can optionally set the stamp to "anything" you want to. Yes, RTFM! Rich Straka ihnp4!ihlpf!straka