The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
DNS details of HP-UX ksailesh HP-UX 2 01-10-2008 02:45 PM
DNS details of HP-UX ?? ksailesh Shell Programming and Scripting 1 01-10-2008 12:58 PM
How does one get HW details? garethh UNIX for Dummies Questions & Answers 3 02-22-2006 05:18 PM
HP -UX certification details. Sireesha NP HP-UX 2 09-21-2005 09:56 AM
Ipc Details G.Vishnuvardhan UNIX for Dummies Questions & Answers 2 07-26-2005 11:45 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 08-30-2007
Registered User
 

Join Date: Feb 2007
Location: Pune, Dehradun (INDIA), Michigan(US)
Posts: 187
ls -ltr, TIME DETAILS ??

when I write the command ls -ltr it shows the detail of the files. Like

-rwxrwxrwx 1 mqsiadm mqbrkrs 0 Aug 29 14:03 dspmq_temp
-rwxrwxrwx 1 mqsiadm mqbrkrs 666 Aug 30 06:12 dspmq_script

In this,DATE TIME is shown, Now the question is : how can I see the all the times like Creation time, Modified time and Last access time of that file ?



PLEASE HELP !!
ASAP !!
THANKS.
Reply With Quote
Forum Sponsor
  #2  
Old 08-30-2007
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
There is no creation time kept for a file. See mtime, ctime, and atime
Reply With Quote
  #3  
Old 09-01-2007
cassj's Avatar
Supporter
 

Join Date: Jul 2003
Location: Interweb
Posts: 107
This may be more info than you need, but here goes....

stat filename

Example:
Code:
$ stat mbox
  File: `mbox'
  Size: 14603436        Blocks: 28568      IO Block: 4096   regular file
Device: 803h/2051d      Inode: 1140936     Links: 1
Access: (0600/-rw-------)  Uid: ( 1000/   cassj)   Gid: ( 1000/   cassj)
Access: 2007-09-01 10:11:22.000000000 -0400
Modify: 2007-08-25 01:23:30.000000000 -0400
Change: 2007-08-25 01:23:30.000000000 -0400
Reply With Quote
  #4  
Old 09-03-2007
Registered User
 

Join Date: Feb 2007
Location: Pune, Dehradun (INDIA), Michigan(US)
Posts: 187
stat does not work on AIX5.0, and I am using AIX.
It works as istat filename.

Any other option ??
Reply With Quote
  #5  
Old 09-03-2007
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,328
How about taking a look at the link in Perderabo's post? I suggest that you read the entire tutorial. Very well written and very informative.
Reply With Quote
  #6  
Old 09-03-2007
Registered User
 

Join Date: Feb 2007
Location: Pune, Dehradun (INDIA), Michigan(US)
Posts: 187
Yup !!
Thanks "Blowtorch", actually i have read that link carefully !!
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
mtime

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:07 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0