HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- List create date of a file
Operating System - HP-UX
1830212
Members
1437
Online
109999
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
Go to solution
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
08-30-2001 06:36 PM
08-30-2001 06:36 PM
Hi all,
If I have modified a file or get a file through ftp, the date/time of that file will change. Is it possible to list out the actual create date/time of the file ?
Thanks,
Patrick
If I have modified a file or get a file through ftp, the date/time of that file will change. Is it possible to list out the actual create date/time of the file ?
Thanks,
Patrick
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2001 07:15 PM
08-30-2001 07:15 PM
Solution
Hi Patrick:
Unfortunately, there is no creation timestamp that is distinct from the modification timestamp. The 'ls -l' command reports the modification timestamp. 'ls -lc' returns the timestamp for which the last permission or ownership change occured. 'ls -lu' returns the lastaccess timestamp.
...JRF...
Unfortunately, there is no creation timestamp that is distinct from the modification timestamp. The 'ls -l' command reports the modification timestamp. 'ls -lc' returns the timestamp for which the last permission or ownership change occured. 'ls -lu' returns the lastaccess timestamp.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2001 09:27 PM
08-30-2001 09:27 PM
Re: List create date of a file
Patrick,
If you want to preserve the time stamp of the ftp'ed file, you need to do some work arounds. During your ftp session, you can view the stamp of the file by doing a "dir" at the ftp prompt and note the time stamp. After downloading the file you can use "touch" command to change the time stamp.
If it is a non-interactive ftp session, redirect your ftp output to a file. grep for the listing of file and get the timestamp field by awking the line and then touch the ftp'ed file touching it with this stamp.
If you have control over the remote site, instead of ftp'ing the original file, tar it and then ftp the tar ball. Once the tar is untar'ed, you will get the file with the original time stamp.
Cumbersome. But possible.
-Sri
If you want to preserve the time stamp of the ftp'ed file, you need to do some work arounds. During your ftp session, you can view the stamp of the file by doing a "dir" at the ftp prompt and note the time stamp. After downloading the file you can use "touch" command to change the time stamp.
If it is a non-interactive ftp session, redirect your ftp output to a file. grep for the listing of file and get the timestamp field by awking the line and then touch the ftp'ed file touching it with this stamp.
If you have control over the remote site, instead of ftp'ing the original file, tar it and then ftp the tar ball. Once the tar is untar'ed, you will get the file with the original time stamp.
Cumbersome. But possible.
-Sri
You may be disappointed if you fail, but you are doomed if you don't try
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2001 10:12 PM
08-30-2001 10:12 PM
Re: List create date of a file
Hi Patrick,
With ftp, there is no way to preserve the initial file creation date and time.
BUT, with remote copy "rcp" you can preserve it by using the option "-p".
#rcp -p server1:/home/user1/.profile /tmp/.profile
Will remote copy file ".profile" from server1 under directory /home/user1 to local server under /tmp.
Magdi
With ftp, there is no way to preserve the initial file creation date and time.
BUT, with remote copy "rcp" you can preserve it by using the option "-p".
#rcp -p server1:/home/user1/.profile /tmp/.profile
Will remote copy file ".profile" from server1 under directory /home/user1 to local server under /tmp.
Magdi
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