The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Getting modified time & filename only senthil_seera Shell Programming and Scripting 4 04-13-2008 12:50 PM
Time Modified Issue Please Assist Emancipator HP-UX 1 03-13-2008 07:59 AM
Unzip files where modified time>05:00 ? SunnyK Shell Programming and Scripting 3 11-06-2007 10:15 AM
getting last accessed and modified time together raku05 Shell Programming and Scripting 1 09-22-2005 09:15 AM
Checking modified time of files am97395331 UNIX for Dummies Questions & Answers 4 07-02-2003 10:55 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-17-2002
frank frank is offline
Registered User
  
 

Join Date: Nov 2001
Posts: 10
Modified time

How do you change the modified time of a file on UNIX??
  #2 (permalink)  
Old 06-17-2002
Kelam_Magnus's Avatar
Kelam_Magnus Kelam_Magnus is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
Frank,

Here is a search of the site for mtime.

file date vs. system date

http://www.unix.com/search.php?s=&ac...der=descending

Hope these help you.



Please read the FAQ rules for this site.

Don't post the same post more than once and please don't post the same question on more than one forum at the same time. This confuses the other users of this site and causes subsequent answers to be on different posts for the exact same question.

Moderator can you merge/delete the other questions in the UNIX for dummies forum.

Frank, enjoy the site, but just post a question in only one forum.


Enjoy the site.

Last edited by Kelam_Magnus; 06-17-2002 at 04:31 PM..
  #3 (permalink)  
Old 06-17-2002
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
moderator's note: I deleted the other threads since they had no real content worth merging. I agree with Kelam_Magnus, a question should be posted once.

Frank, I think those earlier threads answer your question, but feel free to post a follow-up question if you need to.

But to amplify one point, if you want to change the mtime of a file from the command line, I would go with the "touch" command.
  #4 (permalink)  
Old 06-18-2002
Kelam_Magnus's Avatar
Kelam_Magnus Kelam_Magnus is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
modify mtime to older time?

Perderabo,

I have a hunch the question was how to change the mtime to something older, if that is possible. I think I remember from somewhere that you can make the mtime older.

Am I just crazy?


Signed,

Crazy in McKinney
  #5 (permalink)  
Old 06-18-2002
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
Yeah, the "touch" command can set the mtime to abitrary values, not just "now". Of course, "now" is the default. It can also "copy" the mtime from one file to another.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:31 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0