Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 11-16-2004, 02:57 AM   #1
LQ Newbie
Registered: Nov 2004
Location: india
Posts: 13

Rep: Reputation: 0
Question delete files date wise

how can i delete/remove files in linux using rm command data i want to remove all files created before 25 oct 04 . thanx
Old 11-16-2004, 03:07 AM   #2
Senior Member
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
see: "man find"

find -ctime +10 -exec echo rm '{}' ';'
Prints lines: "rm foo", where foo is a file that is created 10 days ago
or before that. (Take the "echo" word away to actually run the command instead of just printing it).


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete/move/copy files of specific date imsajjadali Red Hat 26 11-08-2013 12:34 AM
Delete files for a particular changed date recursively? qwertyme Linux - Newbie 5 01-23-2009 11:41 AM
IMAP - delete after certain date paul_mat Linux - Networking 2 08-01-2005 04:31 PM
Delete files based on date stefaandk Linux - General 3 06-17-2005 03:20 AM
bandwidth allocation by user wise and ip wise basbosco Linux - Networking 1 11-12-2003 03:54 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:42 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration