Mailinglist Archive: opensuse (3637 mails)

< Previous Next >
Re: [SLE] change date
  • From: Mads Martin Jørgensen <mmj@xxxxxxxx>
  • Date: Thu, 17 May 2001 00:39:35 -0700
  • Message-id: <20010517003934.E20665@xxxxxxxx>
* Tor Sigurdsson <tosi@xxxxxxxxxxxxxxxxxxxx> [May 16. 2001 18:27]:
> > > > how can i change the date of a file on a fat partition, either whith
> > > > windows or with linux.
> > >
> > > % touch filename?
> >
> > That'll work, of course, if you want to attach the current date or if
> > you're willing and able to temporarily change the system date (probably a
> > very bad idea). I wonder if there's a way to change a file's date to an
> > arbitrary date.
> >
> > Paul
>
> Try
> touch -d 20010113 yourfile.txt
>
> Strange how few read the man....

Exactly.

--
Mads Martin Joergensen, http://mmj.dk
"Why make things difficult, when it is possible to make them cryptic and
totally illogic, with just a little bit more effort."
-- A. P. J.

< Previous Next >