- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: finding files modified last 30 days
Operating System - HP-UX
1753870
Members
7345
Online
108809
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
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
тАО04-14-2011 04:49 AM
тАО04-14-2011 04:49 AM
finding files modified last 30 days
Hi Admins,
I want to find files which modified last 30 days.Please tell me the options can be used with find and mtime options.
Regards
himacs
I want to find files which modified last 30 days.Please tell me the options can be used with find and mtime options.
Regards
himacs
- Tags:
- find
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2011 05:10 AM
тАО04-14-2011 05:10 AM
Re: finding files modified last 30 days
Hi:
Google this site and you would find any number of examples. In short:
# find /path -xdev -type f -mtime -30 -exec ls -ld {} +
...to find files in '/path' modified during the last 30-days.
Change '-30' to '+30' if you want files not modified in the last 30-days.
You can also touch two temporary files and use their timestamps as boundaries, like:
# touch -amt 201101010000 /tmp/f1
# touch -amt 201104010000 /tmp/f2
# find /patch -xdev -type f \( -newer /tmp/f1 -a ! -newer /tmp/f2 \) -exec ls -ld {} +
...to find files modified between the two periods.
Regards!
...JRF...
Google this site and you would find any number of examples. In short:
# find /path -xdev -type f -mtime -30 -exec ls -ld {} +
...to find files in '/path' modified during the last 30-days.
Change '-30' to '+30' if you want files not modified in the last 30-days.
You can also touch two temporary files and use their timestamps as boundaries, like:
# touch -amt 201101010000 /tmp/f1
# touch -amt 201104010000 /tmp/f2
# find /patch -xdev -type f \( -newer /tmp/f1 -a ! -newer /tmp/f2 \) -exec ls -ld {} +
...to find files modified between the two periods.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2011 05:10 AM
тАО04-14-2011 05:10 AM
Re: finding files modified last 30 days
find /directory -type f -mtime -30
HTH
HTH
Entities are not to be multiplied beyond necessity - RTFM
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