- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to get created date/time of a file?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-01-2005 02:44 PM
тАО09-01-2005 02:44 PM
How to get created date/time of a file?
thanks.
Ian lee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-01-2005 03:52 PM
тАО09-01-2005 03:52 PM
Re: How to get created date/time of a file?
Ctime MIGHT also be the time of file creation but if it is, it's simply coincidence and cannot be trusted. UNIX simply doesn't carry that metadata.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-01-2005 05:54 PM
тАО09-01-2005 05:54 PM
Re: How to get created date/time of a file?
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-01-2005 06:06 PM
тАО09-01-2005 06:06 PM
Re: How to get created date/time of a file?
"ls" command with -c option gives some info like.
-c Use time of last modification of the inode (file created, mode changed, etc.)
Regards,
Rajesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-01-2005 06:35 PM
тАО09-01-2005 06:35 PM
Re: How to get created date/time of a file?
use ls -i to get inode of the file,and then use fsdb to get the creation time.on hpux11i,output like this:
atime 1122804447 4 (Sun Jul 31 18:07:27 2005 EAT)
mtime 1079844641 210001 (Sun Mar 21 12:50:41 2004 EAT)
ctime 1086345346 600056 (Fri Jun 4 18:35:46 2004 EAT)
But on hpux 11 just output unix time,and you may take some to caculate it:
atime 1046761293 497056 mtime 1046761289 217050 ctime 1046761289 217050
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-01-2005 07:05 PM
тАО09-01-2005 07:05 PM
Re: How to get created date/time of a file?
http://www.faqs.org/faqs/unix-faq/faq/part3/section-1.html
hth.