LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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, 06: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, 08:35 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,805

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
ls -clt <filename> to show creation time.
ls -mlt <filename> to show modification time.
 
Old 10-27-2005, 12:00 PM   #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, 07:33 PM   #4
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,805

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
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, 08:34 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
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 08:35 PM.
 
  


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 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 07:07 PM
file dates digitalgravy Linux - General 2 01-20-2005 11:58 AM
File Dates Rv5 Programming 5 09-07-2004 06:59 PM
Sorting a file containing dates subu_s Linux - General 2 06-03-2004 02:07 PM
File dates. vexer Programming 5 04-28-2004 01:14 AM


All times are GMT -5. The time now is 06:40 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration