LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-26-2005, 05:42 PM   #1
plainkeyman
LQ Newbie
 
Registered: Jun 2004
Posts: 18

Rep: Reputation: 0
file created/accessed dates


how do i view file creation/accessed dates with ls ?


Code:
ls -l
this will show me the modified dates, but i want to see created/accessed as well. how do i do this?



thanx
 
Old 10-26-2005, 07:35 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
ls -clt <filename> to show creation time.
ls -mlt <filename> to show modification time.
 
Old 10-27-2005, 11:00 AM   #3
plainkeyman
LQ Newbie
 
Registered: Jun 2004
Posts: 18

Original Poster
Rep: Reputation: 0
tried...

hmm somethings not working right, i have a file i know i created a long time ago. i write to this file nearly everyday. both commands you mentioned produced the same date.

i am using slackware 10.2 with reiserfs
 
Old 10-27-2005, 06:33 PM   #4
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
That's odd. I tried the commands under SuSE 9.3 before I posted. I got different results for the same file.

It's either a Slackjaw problem, or a ReiserFS problem.
 
Old 10-27-2005, 07:34 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Linux doesn't even keep track of creation times.

And to get the access time use
ls -ul

Code:
-m     fill width with a comma separated list of entries


Cheers,
Tink

Last edited by Tinkster; 10-27-2005 at 07:35 PM.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using FIND to locate files created between certain dates billybobjoe1984 Programming 6 07-23-2005 06:07 PM
file dates digitalgravy Linux - General 2 01-20-2005 10:58 AM
File Dates Rv5 Programming 5 09-07-2004 05:59 PM
Sorting a file containing dates subu_s Linux - General 2 06-03-2004 01:07 PM
File dates. vexer Programming 5 04-28-2004 12:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:41 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
Open Source Consulting | Domain Registration