- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Can we change creation date 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
тАО01-16-2003 08:29 PM
тАО01-16-2003 08:29 PM
I thing there is some way to change the
creation time stamp (date) of a file to
some old date.
Regards
R. Ezhil
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2003 08:41 PM
тАО01-16-2003 08:41 PM
Re: Can we change creation date of a file
Top change the file test from it's current date to 28 Oct 2002 at 15:30
# touch -t 0210281530 test
Have a look at the man page for 'touch'
# man touch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2003 08:41 PM
тАО01-16-2003 08:41 PM
Re: Can we change creation date of a file
By the way, I don't believe -t works on 10.20.
I'll say it again, I'd rather not use it, and if you do, test thoroughly on an testfile.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2003 08:43 PM
тАО01-16-2003 08:43 PM
Solution# touch -t 200212251530 testfile
Will create a file called testfile with a time stamp of Dec. 25, 2002 at 15:30.
If you run this against an existing file, it will change the time stamp to what you specify.
# man touch
for more information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2003 08:52 PM
тАО01-16-2003 08:52 PM
Re: Can we change creation date of a file
atime - access time
ctime - change time
mtime - modification time
what you get in ll is access time. you can change it with touch command. so that need not be creation time. (it could be if file has not been modified since creation i.e ctime is the creation time if the file is not modified)
Check man page of touch.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2003 09:04 PM
тАО01-16-2003 09:04 PM
Re: Can we change creation date of a file
It's possible using 'touch' command
$touch -t yyyymmddhhmm
where yyyy - year
mm - month
dd - date
hh - hour
mm - minute
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2003 11:59 PM
тАО01-16-2003 11:59 PM
Re: Can we change creation date of a file
The touch -t cannot change the ctime (although s touch w/o -t does!). BTW, also the corresponding syscall utime(2) does not change the ctime. So there seems to be no easy way do do it.
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2003 12:11 AM
тАО01-17-2003 12:11 AM
Re: Can we change creation date of a file
Whenever the inode is changed, ctime is updated. So even the changing of the timestamps updates the inode and gets the ctime updated also. Changing the ctime alone would not make sense, since this change itself would be updating ctime back to the current time.
Best regards...
Dietmar.