How to check file creation date

How to check file creation date

Post by moon » Thu, 09 Feb 2006 10:47:46



ls -lt just select the file last updated date. How to check file creation
date and time ?
-rw-r--r--   1 itxxx  x85    4783481 Feb  8 09:36 1510208_finger_53.prn
 
 
 

How to check file creation date

Post by Jean-Louis Liagr » Thu, 09 Feb 2006 11:08:10



> ls -lt just select the file last updated date. How to check file creation
> date and time ?
> -rw-r--r--   1 itxxx  x85    4783481 Feb  8 09:36 1510208_finger_53.prn

You can't, it's not recorded.

 
 
 

How to check file creation date

Post by Barry Margoli » Thu, 09 Feb 2006 11:09:24




> ls -lt just select the file last updated date. How to check file creation
> date and time ?
> -rw-r--r--   1 itxxx  x85    4783481 Feb  8 09:36 1510208_finger_53.prn

Standard Unix file systems don't store creation time.  The only times
Unix stores for files are access time, modification time, and inode
change time.

--

Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***

 
 
 

How to check file creation date

Post by moon » Thu, 09 Feb 2006 11:39:56


OK. How to Get those information ?




>> ls -lt just select the file last updated date. How to check file creation
>> date and time ?
>> -rw-r--r--   1 itxxx  x85    4783481 Feb  8 09:36 1510208_finger_53.prn

> Standard Unix file systems don't store creation time.  The only times
> Unix stores for files are access time, modification time, and inode
> change time.

> --

> Arlington, MA
> *** PLEASE post questions in newsgroups, not directly to me ***
> *** PLEASE don't copy me on replies, I'll read them in the group ***

 
 
 

How to check file creation date

Post by Lew Pitche » Thu, 09 Feb 2006 11:53:20


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Content rearranged for readability






>>>ls -lt just select the file last updated date. How to check file creation
>>>date and time ?
>>>-rw-r--r--   1 itxxx  x85    4783481 Feb  8 09:36 1510208_finger_53.prn

>>Standard Unix file systems don't store creation time.  The only times
>>Unix stores for files are access time, modification time, and inode
>>change time.

> OK. How to Get those information ?

You don't. Not unless you explicitly store it yourself somewhere.

- --
Lew Pitcher

Master Codewright & JOAT-in-training | GPG public key available on request
Registered Linux User #112576 (http://counter.li.org/)
Slackware - Because I know what I'm doing.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.7 (GNU/Linux)

iD8DBQFD6V0gagVFX4UWr64RAh3UAJwLUpMncVcPCehs4ePb7MDL3RdvIQCgmoU3
R7rb59VKd+TQxOBrSCMqXa8=
=XCE/
-----END PGP SIGNATURE-----

 
 
 

How to check file creation date

Post by Ed Morto » Thu, 09 Feb 2006 13:49:22



> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1

> Content rearranged for readability






>>>>ls -lt just select the file last updated date. How to check file creation
>>>>date and time ?
>>>>-rw-r--r--   1 itxxx  x85    4783481 Feb  8 09:36 1510208_finger_53.prn

>>>Standard Unix file systems don't store creation time.  The only times
>>>Unix stores for files are access time, modification time, and inode
>>>change time.

>>OK. How to Get those information ?

> You don't. Not unless you explicitly store it yourself somewhere.

I think by "those information" he probably means one or more of access
time, modification time, and inode change time. If so, he could take a
look at "stat", "ls", GNU "find", etc...

        Ed.

 
 
 

How to check file creation date

Post by Bill Marcu » Thu, 09 Feb 2006 14:13:16


On Wed, 8 Feb 2006 10:39:56 +0800, moon



>> Standard Unix file systems don't store creation time.  The only times
>> Unix stores for files are access time, modification time, and inode
>> change time.

> OK. How to Get those information ?

man ls
ls -lu
ls -l
ls -lc

--
When the weight of the paperwork equals the weight of the plane, the
plane will fly.
                -- Donald Douglas

 
 
 

How to check file creation date

Post by Peter Terpstr » Thu, 09 Feb 2006 17:54:21


Bill Marcum zat achter de pc en typte:

Quote:> man ls
> ls -lu
> ls -l
> ls -lc

A nice one is also the `--fulltime' option.

Or `date -r filename'

Peter

--

 
 
 

How to check file creation date

Post by Chris F.A. Johnso » Thu, 09 Feb 2006 18:07:19



Quote:> Bill Marcum zat achter de pc en typte:

>> man ls
>> ls -lu
>> ls -l
>> ls -lc

> A nice one is also the `--fulltime' option.

> Or `date -r filename'

    Both of which are limited to the GNU versions of those utilities.

--
   Chris F.A. Johnson, author   |    <http://cfaj.freeshell.org>
   Shell Scripting Recipes:     |  My code in this post, if any,
   A Problem-Solution Approach  |          is released under the
   2005, Apress                 |     GNU General Public Licence

 
 
 

How to check file creation date

Post by Sures » Thu, 09 Feb 2006 23:05:20



> ls -lt just select the file last updated date. How to check file creation
> date and time ?
> -rw-r--r--   1 itxxx  x85    4783481 Feb  8 09:36 1510208_finger_53.prn

ANS

->As per the ur Query  U can try this
-> Example :Now I wnat to display the files which are created on Feb  8

->ls -lrt|grep "Feb  8"

 
 
 

How to check file creation date

Post by Lew Pitche » Thu, 09 Feb 2006 23:24:16




>> ls -lt just select the file last updated date. How to check file creation
>> date and time ?
>> -rw-r--r--   1 itxxx  x85    4783481 Feb  8 09:36 1510208_finger_53.prn
> ANS

> ->As per the ur Query  U can try this
> -> Example :Now I wnat to display the files which are created on Feb  8

> ->ls -lrt|grep "Feb  8"

Which gets you the files that were /last modified/ on Feb 8, not files
that were /created/ on Feb 8.

--

Lew Pitcher, IT Specialist, Corporate Technology Solutions,
Enterprise Technology Solutions, TD Bank Financial Group

(Opinions expressed here are my own, not my employer's)

 
 
 

How to check file creation date

Post by Ed Morto » Thu, 09 Feb 2006 23:49:31





>>>ls -lt just select the file last updated date. How to check file creation
>>>date and time ?
>>>-rw-r--r--   1 itxxx  x85    4783481 Feb  8 09:36 1510208_finger_53.prn

>>ANS

>>->As per the ur Query  U can try this
>>-> Example :Now I wnat to display the files which are created on Feb  8

>>->ls -lrt|grep "Feb  8"

> Which gets you the files that were /last modified/ on Feb 8, not files
> that were /created/ on Feb 8.

and files that were unlucky enough to have "Feb  8" in their name.

        Ed.

 
 
 

How to check file creation date

Post by Dan Merce » Sun, 12 Feb 2006 08:00:32


: >> ls -lt just select the file last updated date. How to check file creation
: >> date and time ?
: >> -rw-r--r--   1 itxxx  x85    4783481 Feb  8 09:36 1510208_finger_53.prn
: > ANS
: >
: >
: >
: > ->As per the ur Query  U can try this
: > -> Example :Now I wnat to display the files which are created on Feb  8
: >
: > ->ls -lrt|grep "Feb  8"
:
: Which gets you the files that were /last modified/ on Feb 8, not files
: that were /created/ on Feb 8.

As a general point,  you can't find a creation date for a file on
UNIX because the cobcept is meaningless.  You usually only see that
question from mainframers where the creation date is the date the
dataset was allocated.  UNIX's filesystem is vastly different.  What
would you even choose for a creation date?  The time the inode was
allocated?  What about tar then?  You could have files with access and
write times older than creation date.  How about the time the directory
entry was made?  Well then,  you'd have some linked files with
multiple creation times.

If you can't define what you want,  of what good is it?

Dan Mercer

:
:
: --
:
: Lew Pitcher, IT Specialist, Corporate Technology Solutions,
: Enterprise Technology Solutions, TD Bank Financial Group
:
: (Opinions expressed here are my own, not my employer's)

 
 
 

How to check file creation date

Post by Chris F.A. Johnso » Sun, 12 Feb 2006 08:34:14






>: >> ls -lt just select the file last updated date. How to check file creation
>: >> date and time ?
>: >> -rw-r--r--   1 itxxx  x85    4783481 Feb  8 09:36 1510208_finger_53.prn
>: > ANS
>: >
>: > ->As per the ur Query  U can try this
>: > -> Example :Now I wnat to display the files which are created on Feb  8
>: >
>: > ->ls -lrt|grep "Feb  8"
>:
>: Which gets you the files that were /last modified/ on Feb 8, not files
>: that were /created/ on Feb 8.

> As a general point,  you can't find a creation date for a file on
> UNIX because the cobcept is meaningless.

   Not at all.

Quote:> You usually only see that question from mainframers where the
> creation date is the date the dataset was allocated.

   I worked on a system (8086, not mainframe, nor Unix) in which the
   creation dates were recorded. A file listing gave both creation
   time and modification times.

Quote:> UNIX's filesystem is vastly different. What would you even choose
> for a creation date?

   Take your pick. Once you have chosen, implement it.

Quote:> The time the inode was allocated?

   Good idea.

Quote:> What about tar then?

   _What_ about tar?

Quote:> You could have files with access and write times older than creation
> date.

   How?

Quote:> How about the time the directory entry was made? Well then,
> you'd have some linked files with multiple creation times.

   If that's what you want, then that can be implemented. If not, do
   it differently.

Quote:> If you can't define what you want, of what good is it?

   Of course you can define it. You have to make a decision which of
   various possible definitions you are going to use.

--
   Chris F.A. Johnson, author   |    <http://cfaj.freeshell.org>
   Shell Scripting Recipes:     |  My code in this post, if any,
   A Problem-Solution Approach  |          is released under the
   2005, Apress                 |     GNU General Public Licence

 
 
 

How to check file creation date

Post by Dan Merce » Mon, 13 Feb 2006 02:49:02




: >


: >: >> ls -lt just select the file last updated date. How to check file creation
: >: >> date and time ?
: >: >> -rw-r--r--   1 itxxx  x85    4783481 Feb  8 09:36 1510208_finger_53.prn
: >: > ANS
: >: >
: >: > ->As per the ur Query  U can try this
: >: > -> Example :Now I wnat to display the files which are created on Feb  8
: >: >
: >: > ->ls -lrt|grep "Feb  8"
: >:
: >: Which gets you the files that were /last modified/ on Feb 8, not files
: >: that were /created/ on Feb 8.
: >
: > As a general point,  you can't find a creation date for a file on
: > UNIX because the concept is meaningless.
:
:    Not at all.
:
: > You usually only see that question from mainframers where the
: > creation date is the date the dataset was allocated.
:
:    I worked on a system (8086, not mainframe, nor Unix) in which the
:    creation dates were recorded. A file listing gave both creation
:    time and modification times.
:
: > UNIX's filesystem is vastly different. What would you even choose
: > for a creation date?
:
:    Take your pick. Once you have chosen, implement it.
:
: > The time the inode was allocated?
:
:    Good idea.
:
: > What about tar then?
:
:    _What_ about tar?
:
: > You could have files with access and write times older than creation
: > date.
:
:    How?

Because tar preserves and restores file times unless you override
the default behavior.

And what happens on a move?  You will get conflicting creation
times depending on whether a file system was crossed.
:
: > How about the time the directory entry was made? Well then,
: > you'd have some linked files with multiple creation times.
:
:    If that's what you want, then that can be implemented. If not, do
:    it differently.
:
: > If you can't define what you want, of what good is it?
:
:    Of course you can define it. You have to make a decision which of
:    various possible definitions you are going to use.

And then you have to modify the filesystem to support it,  as well
as all filesystem utilities,  system calls.  And to what end.
What will it tell you that is worth the effort of making the
change?  If you could come up with a reasonable definition and some
concrete notion of how the creation time would be used,  I suppose it
could be rolled into the work effort when UNIX times go 64 bit
(Thankfully,  I should be retired by then). (Unless,  of course,
the powers that be simply don't decide to roll forward the
epoch date to say,  2000 - a reasonable kludge.

Dan Mercer

:
: --
:    Chris F.A. Johnson, author   |    <http://cfaj.freeshell.org>
:    Shell Scripting Recipes:     |  My code in this post, if any,
:    A Problem-Solution Approach  |          is released under the
:    2005, Apress                 |     GNU General Public Licence

 
 
 

1. date checking file by file

I know I saw a post about this before but I didnt really need
the info at the time sorry for reposting
I have used the find command to search a bunch of files as
follows
        find dir -newer <certain file with date>
but what i need to do is this
setup:
        dir1 has source code control files
        dir2 has working files
        file naming convention in dir1 as follows
                <name of working file><sanslastcharacter>v
                ex: dir2/filea.123 dir1/filea.12v
                additionally
                     dir2/file.1  dir1/filea.1_v
        dir1 is huge (gigs)
        filea.123 and file.12v may be same date-stamp

problem:
        need to recursively do stuff to files in dir1
        but running find takes WAY too long so I would only like
        to do things to files in dir1 if the date is different
        from corresponding file in dir2

        and yes the files could be touched while running the    
        program

thanks

2. login processes not ending

3. File Creation Date

4. AAAAAHHHHHHHH!!!!!!!!

5. How do you find out the creation date of a file?

6. prob with swap space

7. File Creation Date

8. Booting Problems

9. Determining the file creation date in Korn shell?

10. getting the creation date of a file

11. How can I get the CREATION date of a file?

12. how to get creation date/time of o file in aix4.3.3

13. how to get date of creation file