The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to empty a file(already created) laknar Shell Programming and Scripting 4 07-04-2007 10:00 AM
File created time yakyaj UNIX for Advanced & Expert Users 6 03-23-2007 05:20 AM
want to cat the latest log file created vkandati UNIX for Dummies Questions & Answers 1 03-08-2005 02:13 PM
UNIX->C++ File attribute mizrachi High Level Programming 0 08-05-2004 04:34 AM
File attribute Help please Cube3k Linux 1 12-15-2003 01:31 PM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-13-2001
Registered User
 

Join Date: Sep 2001
Location: London, UK
Posts: 2
File Created On attribute

Hi,

I need to find out when a file has been created. 'ls -l' just lists the last date the file was modified. I have also noticed when viewing the attributes through NT, the last modified date is the same as the file creation date. I thought maybe this was a fault due to samba.

I guess what I really want is some way to view all the attributes for a node/file.

Thank you in advance,

Darren Palmer
Forum Sponsor
  #2 (permalink)  
Old 09-16-2001
rwb1959's Avatar
Registered User
 

Join Date: Aug 2001
Location: Virginia, USA
Posts: 438
Unfortunately, you cannot get the file
creation time. It is not stored anywhere.
You can get access time vs modification time
using the "stat" command.

Example:

$ stat hello.c
File: "hello.c"
Size: 77 Filetype: Regular File
Mode: (0644/-rw-r--r--) Uid: ( 501/bbarrett) Gid: ( 501/bbarrett)
Device: 3,65 Inode: 800028 Links: 1
Access: Sun Sep 16 10:45:40 2001(00000.00:00:03)
Modify: Sun Sep 16 10:39:28 2001(00000.00:06:15)
Change: Sun Sep 16 10:39:28 2001(00000.00:06:15)
Google The UNIX and Linux Forums
Closed Thread

« silent telnet | Ftp »
Thread Tools
Display Modes




All times are GMT -7. The time now is 12:32 PM.


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 Global Fact Book

Content Relevant URLs by vBSEO 3.2.0