- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Can I change the update/modify 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
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
тАО05-01-2006 08:02 PM
тАО05-01-2006 08:02 PM
Can I change the update/modify time of a file??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2006 08:03 PM
тАО05-01-2006 08:03 PM
Re: Can I change the update/modify time of a file??
man touch.
Why you want to do it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2006 08:05 PM
тАО05-01-2006 08:05 PM
Re: Can I change the update/modify time of a file??
You can you "touch" command,using which you can modify the "modified time" or "access time" of a file.
For more details refer to man page of "touch" command.
man touch
Regards,
Senthil Kumar .A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2006 08:09 PM
тАО05-01-2006 08:09 PM
Re: Can I change the update/modify time of a file??
In fact, I accidentally deleted an critical file. I recovered it from my archive & want to change the modified date to hide my fault....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2006 08:18 PM
тАО05-01-2006 08:18 PM
Re: Can I change the update/modify time of a file??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2006 08:35 PM
тАО05-01-2006 08:35 PM
Re: Can I change the update/modify time of a file??
You remind me of my little brother who tries to hide his fault. Anyway cute..
I wish you succeed in hiding yours :)
Regards,
Senthil Kumar .A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2006 11:04 PM
тАО05-01-2006 11:04 PM
Re: Can I change the update/modify time of a file??
?date
Tue May 2 13:03:40 METDST 2006
?touch -t 05020200 prueba
?ll prueba
-rw-r----- 1 usr grp0 May 2 02:00 prueba
? man touch
ran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2006 02:06 AM
тАО05-02-2006 02:06 AM
Re: Can I change the update/modify time of a file??
For rm, maybe alias it in /etc/profile:
alias rm='rm -i'
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2006 02:16 AM
тАО05-02-2006 02:16 AM
Re: Can I change the update/modify time of a file??
-t time specifies a particular time using this format:
[[[[cc]yy]MM]dd]hhmm[.ss]
where cc is the optional first 2 digits of the year, yy is the optional last 2 digits of the year, MM is the optional number of the month (01-12), dd is the optional day of the month, hh is the hour in 24 hour format (required), mm is the minutes (required), ss is the optional seconds.
EXAMPLES
touch newfile
sets the modification time of newfile to the present.
touch -t 8001031305 oldfile
sets the modification time of oldfile to 13:05 on January 3, 1980.
touch -r oldfile newfile
sets the modification time of newfile to that of oldfile.
Regards,
Asif Sharif
Asif Sharif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2006 05:05 AM
тАО06-08-2006 05:05 AM
Re: Can I change the update/modify time of a file??
dbracsora1:/tmp # ls -l tmpFileKernelParms.txt
-rw-r----- 1 oracle dba 11 Dec 31 1969 tmpFileKernelParms.txt
dbracsora1:/tmp # ls -lc tmpFileKernelParms.txt
-rw-r----- 1 oracle dba 11 Jun 3 07:09 tmpFileKernelParms.txt
dbracsora1:/tmp # touch -t 200606030710 tmpFileKernelParms.txt
dbracsora1:/tmp # ls -l tmpFileKernelParms.txt
-rw-r----- 1 oracle dba 11 Jun 3 07:10 tmpFileKernelParms.txt
dbracsora1:/tmp # ls -lc tmpFileKernelParms.txt
-rw-r----- 1 oracle dba 11 Jun 8 13:00 tmpFileKernelParms.txt
dbracsora1:/tmp #