- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Find out recently updated or written files.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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-17-2005 11:25 PM
07-17-2005 11:25 PM
Find out recently updated or written files.
Although these mount points /u01, /u02, /u03 & /u04 should have absolutely static files and they should not grow or zero percent growth.
But some how used space on those mounts points is increasing, I would like to know which files are being updated or being written recently?
Need to figure out recently updated or written files.
Thanks,
Gulam.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2005 11:33 PM
07-17-2005 11:33 PM
Re: Find out recently updated or written files.
ls -lur --> Recently accesses files
ls -lcr --> Recently changed files
ls -ltr|sort -nk5, ls -lur|sort -nk5 and
ls -lcr | sort -nk5 also helps.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2005 11:38 PM
07-17-2005 11:38 PM
Re: Find out recently updated or written files.
You can use find
use option mtime
find . -mtime -2
it will list files modified within the last 2 days
Cheers,
Kasper
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2005 11:40 PM
07-17-2005 11:40 PM
Re: Find out recently updated or written files.
What about if we have lots of deep recursive directories.
Thanks,
Gulam.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2005 11:47 PM
07-17-2005 11:47 PM
Re: Find out recently updated or written files.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2005 12:24 AM
07-18-2005 12:24 AM
Re: Find out recently updated or written files.
find is the best friend in these sort of situations where deep recursive is required and you are interested only for the resulting records.
check the -mtime option of find which should help you in this case
Regards,
Gopi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2005 01:03 AM
07-18-2005 01:03 AM
Re: Find out recently updated or written files.
i think find is the tool for you. You can do a find with mtime for modification time or even ctime for creation time. Check the man page for more information.
If you have links in these directories i also would use -xdev so that symlinks to another device are not followed.
For large directories i would create a script to collect all this info and run it at night. Searching for files only and piping them to ll to get more informaiton:
find /u01 -type f -mtime -7 | ll > logfile
Hope this helps
Regards Stefan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2005 01:13 AM
07-18-2005 01:13 AM
Re: Find out recently updated or written files.
-mtime switch only has granularity of days level. If you are interested in finding files changed in the last few hours, you have to follow Pete's sugestion and use -newer switch. How you ask ? easy.
touch -t DDMMhhmm /tmp/reffile
find /directory/level -newer /tmp/reffile
hope this helps
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2005 11:38 PM
07-18-2005 11:38 PM
Re: Find out recently updated or written files.
Regards,
Gulam.