- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Linux script for purging old files
Operating System - Linux
1752687
Members
5299
Online
108789
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2008 05:36 AM
тАО07-31-2008 05:36 AM
Re: Linux script for purging old files
The -ctime, -mtime and -atime options of the find command calculate the file's age by 24-hour periods, ignoring any fractional part.
"-mtime 7" finds files which are _exactly_ 7 days old, i.e. files with ages between [exactly 7 days] and [7 days, 23 hours, 59 minutes and 59 seconds].
"-mtime +7" finds files which are more than 7 full 24-hour periods old, i.e. 8 days old or older. A file that is 7 days, 23 hours, 59 minutes and 59 seconds old is counted as 7 days old, and "more than 7" means 8 days or more.
MK
"-mtime 7" finds files which are _exactly_ 7 days old, i.e. files with ages between [exactly 7 days] and [7 days, 23 hours, 59 minutes and 59 seconds].
"-mtime +7" finds files which are more than 7 full 24-hour periods old, i.e. 8 days old or older. A file that is 7 days, 23 hours, 59 minutes and 59 seconds old is counted as 7 days old, and "more than 7" means 8 days or more.
MK
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2008 07:13 PM
тАО07-31-2008 07:13 PM
Re: Linux script for purging old files
Much better explainations...Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2008 07:15 PM
тАО07-31-2008 07:15 PM
Re: Linux script for purging old files
Thanks!
- « Previous
-
- 1
- 2
- Next »
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP