The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > The UNIX Forums - Contact Us > Post Here to Contact Site Administrators and Moderators
Google UNIX.COM


Post Here to Contact Site Administrators and Moderators Make Suggestions About Forums, Features, or Content here. Discuss Rules and Guidelines. Get Forum Support Here. (Registered Users Only)

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Using camcorder tapes to back up files iBot UNIX and Linux RSS News 0 12-20-2007 08:20 AM
Back up of multiple data files dsravan Shell Programming and Scripting 1 02-07-2007 04:35 PM
Can I back up all the files I work with each day using tar? jo calamine Filesystems, Disks and Memory 2 10-01-2006 02:35 PM
modifying C file and linking back to project files bruins2005 UNIX for Dummies Questions & Answers 1 06-22-2006 08:08 PM
Bring back removed files Reza Nazarian UNIX for Dummies Questions & Answers 2 07-23-2001 07:52 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-08-2006
Registered User
 

Join Date: May 2006
Posts: 1
Stumble this Post!
Red face How to remove 15days back old files

Hi Experts,

I want to delete the log files which is created 15 days back.
1st I want to view the files and later I want to delete viewed files
I have tried with following command but its not working.

find . -name '*.log' -mtime +15 -exec ls -ltr {} \;

This is showing the list which shows not only 15 days back files , its showing
other than that also. What mistake I have done.
Can anybody help me.

Thanks & Regards,
Vidya
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-08-2006
Registered User
 

Join Date: Feb 2006
Location: Schenectady, NY
Posts: 130
Stumble this Post!
The "-mtime +15" expresssion shows files modified 15 days ago OR MORE. Remove the sign from the number for exactly 15 days ago as in:

find . -name '*.log' -mtime 15 -exec ls -ltr {} \;

There might also be some confusion with the atime, mtime, and ctime if the above command doesn't filter out your unwanted files.

Best of luck.
Reply With Quote
  #3 (permalink)  
Old 05-18-2006
Registered User
 

Join Date: May 2006
Posts: 1
Stumble this Post!
transfer of Unix to another hard drive Ver. 3.2

I running out of space on my hard drive, I need to transfer the os to another HD or delete some files too try to free space. what commands can I use to do this and to delete some files.

Andrew
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:21 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0