![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to find ot ctime , mtime ,atime | nilesrex | Shell Programming and Scripting | 5 | 3 Weeks Ago 01:35 PM |
| mtime, ctime, and atime | Perderabo | Tips and Tutorials | 2 | 08-30-2007 06:13 AM |
| atime, ctime, mtime somewhere along csize.. | moxxx68 | UNIX for Dummies Questions & Answers | 4 | 03-02-2005 03:14 PM |
| mtime vs ctime | moxxx68 | UNIX for Dummies Questions & Answers | 3 | 11-06-2004 07:57 PM |
| Converting regular time to CTIME | PGPhantom | UNIX for Dummies Questions & Answers | 9 | 08-23-2002 06:47 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
ctime & find
I am trying to figure out the syntax to use find to remove files older than 30 minutes. I know that this will work for files 1 day old, but cannot seem to trim the time down to 30 minutes.
Code:
find /path/to/file -ctime +1 -exec rm -f {} \;
|
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
You can "touch" a file with a specified datestamp using the "-t" option. Then use find with the "! -cnewer <I>file</I>" options.
HTH |
||||
| Google The UNIX and Linux Forums |