Unix Technical Forum

file created timestamp

This is a discussion on file created timestamp within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Greetings: Does Slackware, or Linux in general, maintain a "file created" timestamp like Windows? Cuz I'm looking at file ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 07:27 AM
sxiang@student.math.uwaterloo.ca
 
Posts: n/a
Default file created timestamp

Greetings:

Does Slackware, or Linux in general, maintain a "file created"
timestamp like Windows? Cuz I'm looking at file properties in Konqueror
and notices only two entries for time stamp ("last modified" and "last
accessed")

FYI, I'm using ReiserFS.

Regards,

Shuo Xiang

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 07:27 AM
No_One
 
Posts: n/a
Default Re: file created timestamp

On 2005-04-05, sxiang@student.math.uwaterloo.ca
<sxiang@student.math.uwaterloo.ca> wrote:
> Greetings:
>
> Does Slackware, or Linux in general, maintain a "file created"
> timestamp like Windows? Cuz I'm looking at file properties in Konqueror
> and notices only two entries for time stamp ("last modified" and "last
> accessed")
>
> FYI, I'm using ReiserFS.
>
> Regards,
>
> Shuo Xiang
>


go to the commandline and type

man stat

All info about files can be found here.

ken

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 07:27 AM
Thomas Overgaard
 
Posts: n/a
Default Re: file created timestamp


sxiang@student.math.uwaterloo.ca wrote :

> Does Slackware, or Linux in general, maintain a "file created"
> timestamp like Windows?


No. In Linux a file has three timestamps. One shows the last access
the other shows last modification and the third shows when the
properties of the file was changed.
--
Thomas O.

This area is designed to become quite warm during normal operation.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-20-2008, 07:27 AM
sxiang@student.math.uwaterloo.ca
 
Posts: n/a
Default Re: file created timestamp

Why doesn't Linux have the "file created" timestamp???

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-20-2008, 07:27 AM
Eef Hartman
 
Posts: n/a
Default Re: file created timestamp

sxiang@student.math.uwaterloo.ca wrote:
> Why doesn't Linux have the "file created" timestamp???


Because Linux is an implementation of UNIX and Unix never had that.
As noted before, it DOES have:
last accessed (read,used)
last modified (file contents)
last changed (attributes etc)
timestamp. Unlike Windows, the Unix timestamp is accurate UP to the
second, althoung "ls -l" normally doesn't show them (FAT date/time
stamps only store the EVEN seconds, so the stamp is always a multiple
of 2 seconds, don't know for certain about NTFS).
--
************************************************** ******************
** Eef Hartman, Delft University of Technology, dept. EWI/TW **
** e-mail: E.J.M.Hartman@math.tudelft.nl, fax: +31-15-278 7295 **
** snail-mail: P.O. Box 5031, 2600 GA Delft, The Netherlands **
************************************************** ******************
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-20-2008, 07:27 AM
gregg
 
Posts: n/a
Default Re: file created timestamp

sxiang@student.math.uwaterloo.ca wrote:
> Why doesn't Linux have the "file created" timestamp???
>


What would be the use anyway ?
If the file has been changed, then creation time is not relevant.
(Unix style by the way)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-20-2008, 07:28 AM
sxiang@student.math.uwaterloo.ca
 
Posts: n/a
Default Re: file created timestamp


gregg wrote:
> sxiang@student.math.uwaterloo.ca wrote:
> > Why doesn't Linux have the "file created" timestamp???
> >

>
> What would be the use anyway ?
> If the file has been changed, then creation time is not relevant.
> (Unix style by the way)


Thanks for the response. In my case there's actually a good reason why
I want the file creation time:

I'm going to write the GRE essay on computers very soon, and is timing
myself to see how fast I can do computer compositions. So by
subtracting the time last modified from the time of file creation I can
figure out how much time I spent composing any one essay.

I know I can also look at the clock, but somehow the mental pressure is
more if I know a clock is ticking away, so I generally won't do well
under those circumstances. Later I found this "discrete" way of having
the computer keep the time for me and I absolutely loved it!!!

Shuo Xiang

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-20-2008, 07:28 AM
gregg
 
Posts: n/a
Default Re: file created timestamp

sxiang@student.math.uwaterloo.ca wrote:

> I'm going to write the GRE essay on computers very soon, and is timing
> myself to see how fast I can do computer compositions. So by
> subtracting the time last modified from the time of file creation I can
> figure out how much time I spent composing any one essay.


You may be interested with a revision control solution, a simple one
like RCS would do the trick: you could then issue a shell-script to
compare times between each opening.

Or maybe using your editor with "time" ?
(not too pretty a solution, I'll admit to that one).

++
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:35 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com