LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-11-2004, 09:42 AM   #1
proxyserver
LQ Newbie
 
Registered: Apr 2004
Posts: 4

Rep: Reputation: 0
Time of creation of a file


Hi,

Is there some method(like command smthng.. )of knowing when a file was created..
Thanks in advance..
 
Old 04-11-2004, 10:09 AM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
If you type
Code:
ls -l filename
It will list the file complete with the date it was last modified. I don't think most file systems store when the file was created separately from when it was modified.

Last edited by leonscape; 04-11-2004 at 10:10 AM.
 
Old 04-11-2004, 10:29 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
well you probably want the stat command for just shell operation. but note that the creation date is not actually date it was created, but the date is finished being created... if that makes sense.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash: how to get time (in seconds) elapsed since creation of a file? J_Szucs Linux - General 6 12-27-2008 11:28 PM
list file creation time allelopath Linux - General 2 08-02-2005 09:02 PM
RPM Spec file creation: %file section question davidas Linux - Newbie 0 03-16-2004 10:36 PM
Comparing files on creation time StarTux Programming 2 08-29-2003 01:08 PM
How to set file creation time in Linux Ian Knight Programming 1 05-06-2003 05:47 PM


All times are GMT -5. The time now is 04:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration