Fedora Linux Support Community & Resources Center
  #1  
Old 23rd February 2005, 04:28 PM
Jeremy Ross Offline
Registered User
 
Join Date: Mar 2004
Age: 30
Posts: 9
Change time on lots of files, and time errors.

Hello,

I am looking to change the time on lots of files.

What happend is when I set up my file server, using samba, I must have had set the time wrong or something, we was getting time errors with our backup software and Dreamweaver. So I change the time, and havn't had any errors come up sence.

However with the backup software some of the files are still using the older time, so I am wondering if there is a command that I can use that will change the time for all of my files to the new time on the server?

Thanks for any help or suggestions,
Jeremy Ross
__________________
Jeremy Ross
Reply With Quote
  #2  
Old 23rd February 2005, 04:33 PM
CrystalCowboy Offline
Registered User
 
Join Date: Sep 2004
Posts: 539
/bin/touch
__________________
Explore the Core!
Reply With Quote
  #3  
Old 23rd February 2005, 06:47 PM
Jeremy Ross Offline
Registered User
 
Join Date: Mar 2004
Age: 30
Posts: 9
Thanks for the reply,

I have been reading the man pages for the touch command; however it does not say any thing about being able to ascend into folders and do mutable files. Also searching for scripts or anything else didn't work also. If you could help me in the right direction that would be great.

Thanks for any help.
Jeremy Ross
__________________
Jeremy Ross
Reply With Quote
  #4  
Old 23rd February 2005, 07:51 PM
james_in_denver Offline
Registered User
 
Join Date: Oct 2004
Posts: 1,227
find -exec touch \{\} \;

That will update the file creation/access date field for every file on your system to the current date and time. (it might take a little while to run though!)
__________________
Only dead fish go with the flow....

Hmmm, what did I miss?
Reply With Quote
  #5  
Old 23rd February 2005, 07:51 PM
james_in_denver Offline
Registered User
 
Join Date: Oct 2004
Posts: 1,227
find / -exec touch \{\} \;

Sorry, must have accidentally cut the "/" root filesystem from previous post.
__________________
Only dead fish go with the flow....

Hmmm, what did I miss?
Reply With Quote
  #6  
Old 23rd February 2005, 08:23 PM
Jeremy Ross Offline
Registered User
 
Join Date: Mar 2004
Age: 30
Posts: 9
Thanks for the quick and helpful reply!

I don't need to do it too all files on my computer, I just need it done to a folder /jobs/Jobs/ and all files and folders within that directory.

Thanks,
Jeremy Ross
__________________
Jeremy Ross
Reply With Quote
  #7  
Old 24th February 2005, 04:43 AM
crackers Offline
Retired Community Manager
 
Join Date: Feb 2004
Location: Seattle, WA, USA
Age: 58
Posts: 3,423
Substitute "/jobs/Jobs/" for "/" in james's post.
__________________
Linux User #28251 (April '93)
Professional Java Geek :cool:
Reply With Quote
Reply

Tags
change, errors, files, lots, time

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Broke Time/Date applet (can't change time) ZystemsK Using Fedora 8 3rd October 2008 02:42 AM
installing errors.. not the first time... tommyboy845 Using Fedora 1 14th January 2008 09:21 PM
How change/set IP address and change time on multibooting menu? booter Servers & Networking 5 8th June 2007 02:46 AM
yum time out, how to change time out settings bassman000 Using Fedora 1 5th December 2006 08:19 PM
FC4: time zone + other errors mtl2002 Using Fedora 1 19th July 2005 07:34 AM


Current GMT-time: 02:50 (Thursday, 27-11-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
National Highway, Tagum City - Parque Municipal de Elche