Modified time

Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Modified time
# 1  
Old 06-17-2002
Modified time

How do you change the modified time of a file on UNIX??
# 2  
Old 06-17-2002

Here is a search of the site for mtime.

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 06:31 PM..
# 3  
Old 06-17-2002
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  
Old 06-18-2002
modify mtime to older time?


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?


Crazy in McKinneySmilie
# 5  
Old 06-18-2002
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how to change modified time of a file

A files last modified time is like 03/02/2012 xx:xx:xx So what would be the command to convert the last modified in the given signature Thanks for giving time and replying..:) (2 Replies)
Discussion started by: ezee
2 Replies

2. Shell Programming and Scripting

Reg file modified time

Hi, I have modified one file today. So if i give `ls -lrt filename` command it will show the current modified time. But i wanted to know what is the previous modified time for this file Is there any way to find this Thanks, Puni (3 Replies)
Discussion started by: puni
3 Replies

3. Homework & Coursework Questions

Grep for modified time

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: is it possible to come up with a list of files that are modified before a certain number of hours only using the... (3 Replies)
Discussion started by: momo.reina
3 Replies

4. Shell Programming and Scripting

Grep for modified time

is it possible to come up with a list of files that are modified before a certain number of hours only using the grep command? ex. list files that were modified less than 10 hours ago i've only managed to list files that were created on the same day, i can't seem to figure out how to work... (3 Replies)
Discussion started by: momo.reina
3 Replies

5. Shell Programming and Scripting

Compare Last Modified Time across Time Zone

Hi, I'm new to shell script programming, I only have Java programming background. I'm writing a shell script to do file synchronization between 2 machines that located at different time zone area. Both machine were set its time zone according to its geographical location (Eg: server is at... (1 Reply)
Discussion started by: python
1 Replies

6. Shell Programming and Scripting

changing modified time

How to change the modified time of a file to any specified time. ls -ltr drwxr-xr-x 2 pipe pipe 4096 Jun 10 10:33 coredump_06062008 ---------------------------------------------------------------------- here file coredump_06062008 last modified time is Jun 10 10:33 and i... (1 Reply)
Discussion started by: ali560045
1 Replies

7. Shell Programming and Scripting

Getting modified time & filename only

Hi, When we use "ls -l" we are getting like below, -rw-r--r-- 1 mdskl mds 4161479 Apr 12 14:57 But i need only modified time and filename only like below, Apr 12 14:57 Thanks-:) Senthil (4 Replies)
Discussion started by: senthil_seera
4 Replies

8. Shell Programming and Scripting

Unzip files where modified time>05:00 ?

Hello :D I am on the shell prompt in a directory, with couple of zip files in it. How can I unzip '*.zip' where modified time > 05:00 ...please help Regards SunnyK (3 Replies)
Discussion started by: SunnyK
3 Replies

9. Shell Programming and Scripting

Finding out the last modified time for files

I need to find out the last modified time for the files which are older than 6 months. If I use ls -l, the files which are older than 6 months, I am just getting the day, month and year instead of exact time. I am using Korn shell, and SUN OS. Thanks in Advance, Kiran (3 Replies)
Discussion started by: kumariak
3 Replies

10. Shell Programming and Scripting

getting last accessed and modified time together

actually, i'm making an Intrusion Detection System for education purpose (for project) using Bourne shell. The problem I get in that is:- 1. My application should check if there's some modification or alteration in the directory. 2, For that thing, I need to have every attribute of file and... (1 Reply)
Discussion started by: raku05
1 Replies
Login or Register to Ask a Question