HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Listing Files with Date and Time
Operating System - HP-UX
1833914
Members
2226
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
01-05-2001 05:01 AM
01-05-2001 05:01 AM
Listing Files with Date and Time
I'm hoping someone here can help me. I've got a user who's trying to list files in a directory but he requires the output to include a file's eight digit create date and 4-6 digit time stamp. Is this possible? I could not find any command which returned this information. Any guidance you could give me would be greatly appreciated.
Thank You In Advance,
Sincerely and Respectfully,
Pamela Goodwin
UNIX Systems Admin
Thank You In Advance,
Sincerely and Respectfully,
Pamela Goodwin
UNIX Systems Admin
"...it's turtles all the way down."
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2001 05:08 AM
01-05-2001 05:08 AM
Re: Listing Files with Date and Time
Hi Pamela,
Unfortunately, the file creation date isn't kept in the inode. The only dates that you can retrieve are:
modification date
status change date
last accessed date
At the time of file creation, the modification date will correspond with the cration date but, as soon as file is modified, the modification date will change and creation date will be lost.
Best regards,
Dan
Unfortunately, the file creation date isn't kept in the inode. The only dates that you can retrieve are:
modification date
status change date
last accessed date
At the time of file creation, the modification date will correspond with the cration date but, as soon as file is modified, the modification date will change and creation date will be lost.
Best regards,
Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2001 05:12 AM
01-05-2001 05:12 AM
Re: Listing Files with Date and Time
Hello Pam,
I agree with Dan, use ls -lrt|pg this will sort and list the files with the most recent modified last.
I agree with Dan, use ls -lrt|pg this will sort and list the files with the most recent modified last.
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2001 09:33 AM
01-06-2001 09:33 AM
Re: Listing Files with Date and Time
Hello Pamela,
as long as no "change" command has been issued to
those files, the "ctime" (change time) still shows the
time of creation! Use "ls -lc" to see it.
But for your format, I am afraid, you have to use
"pstat" and a C-program, or PERL (the "Camelbook"
shows an example with those dates, if I remember
right).
HTH,
Wodisch
as long as no "change" command has been issued to
those files, the "ctime" (change time) still shows the
time of creation! Use "ls -lc" to see it.
But for your format, I am afraid, you have to use
"pstat" and a C-program, or PERL (the "Camelbook"
shows an example with those dates, if I remember
right).
HTH,
Wodisch
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP