[ale] What happend to?

Dow Hurst dhurst at kennesaw.edu
Wed Jul 21 10:28:35 EDT 2004


You need to read up on the ls command and the ctime, mtime, and atime of a 
file.  Your listing may show the last accessed time instead of the last 
modification time.  One problem is if a file is transferred to a new 
filesystem then when written the modification time is the current time.  A tar 
archive can hold modification times but new directories added to a file system 
will not have the original creation time but the new current time.  I've found 
the simplest way to preserve a whole directory structures original 
modification time is to use cp or scp with the preserve, or -p, option.  This 
way the files and directories are transferred but the program touches the 
files and directories with the original modification, or what I would prefer 
to call the "creation time".  I'd read up on

touch
ls
ctime, mtime, atime
cp
tar
stat

and focus on time and date displays or modifications.  It'll help with this. 
Right now you might be able to get to what you want by a different ls flag.
Dow


Sean Kilpatrick wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> I have suddenly discovered that data that _used_ to
> be available with the old DOS file formats seems no
> longer available.
> Specifically, a detailed listing of a file in the 
> dim, dark historical past used to provide both the
> original write/create date _and_ the most recent write
> (or access -- I don't remember which) date.
> 
> Now all I seem to have is the most recent "modification"
> which isn't much help as, in fact, that is the last "read"
> date.
> Is there _any_ way to recover the original write date of 
> a file, or is that data no longer part of the file format?
> 
> The files in question are MS Word files that were originally
> created on Win box and then sent to me.
> 
> Sean
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.1 (GNU/Linux)
> 
> iD4DBQFA/nXB73hVp4UeGJERAmHfAKC9E9KOuSbwJDXz3/pidaNxTJ4O5wCYv/Wp
> FPxQccYyBlAkwO7Y04PTqg==
> =XHPC
> -----END PGP SIGNATURE-----
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
> 

-- 
__________________________________________________________
Dow Hurst                  Office: 770-499-3428            *
Systems Support Specialist    Fax: 770-423-6744            *
1000 Chastain Rd. Bldg. 12                                 *
Chemistry Department SC428  Email:   dhurst at kennesaw.edu   *
Kennesaw State University         Dow.Hurst at mindspring.com *
Kennesaw, GA 30144                                         *
************************************************************
This message (including any attachments) contains          *
confidential information intended for a specific individual*
and purpose, and is protected by law.  If you are not the  *
intended recipient, you should delete this message and are *
hereby notified that any disclosure, copying, distribution *
of this message, or the taking of any action based on it,  *
is strictly prohibited.                                    *
************************************************************



More information about the Ale mailing list