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 > Contact Us (Meet Our Management Team) > Post Here to Contact Site Administrators and Moderators
.
google unix.com



Post Here to Contact Site Administrators and Moderators Registered Users make ask questions and suggestions about forums, features, or content here. Get forum support here, not via email!!

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 12:20 PM
Back up of multiple data files dsravan Shell Programming and Scripting 1 02-07-2007 08: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 05:35 PM
modifying C file and linking back to project files bruins2005 UNIX for Dummies Questions & Answers 1 06-22-2006 11:08 PM
Bring back removed files Reza Nazarian UNIX for Dummies Questions & Answers 2 07-23-2001 10:52 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 05-08-2006
vidya2006 vidya2006 is offline
Registered User
  
 

Join Date: May 2006
Posts: 1
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
  #2 (permalink)  
Old 05-08-2006
hegemaro hegemaro is offline
Registered User
  
 

Join Date: Feb 2006
Location: Schenectady, NY
Posts: 134
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.
  #3 (permalink)  
Old 05-18-2006
am-n-pm am-n-pm is offline
Registered User
  
 

Join Date: May 2006
Posts: 1
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
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 04:59 PM.


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