- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to list the files being modified now in a part...
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
Discussions
Discussions
Forums
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
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
тАО10-25-2008 07:38 AM
тАО10-25-2008 07:38 AM
Mine is HP-UX 11.23 IA64 server. I need to find the list of files, which is being modified currently in a particular direcotory.
Is there any command to get the output for this?
Regards,
Din
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2008 07:46 AM
тАО10-25-2008 07:46 AM
Re: How to list the files being modified now in a particular direcotory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2008 07:47 AM
тАО10-25-2008 07:47 AM
Re: How to list the files being modified now in a particular direcotory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2008 07:50 AM
тАО10-25-2008 07:50 AM
Re: How to list the files being modified now in a particular direcotory
Thanks for your reply, I forgot to mention a point. I need to find the files in that directory along with that sub direcotories.
Thanks,
Din
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2008 07:51 AM
тАО10-25-2008 07:51 AM
Re: How to list the files being modified now in a particular direcotory
Use 'find' and define what you mean when you say "modified currently". For example:
# cd
# find . -xdev -type f -mtime 0
...would list *files* in the current directory ('.') and not cross mountpoints ('-xdev') and list the names of the files modified during the last 24-hours ('-mtime 0').
If you want to find files modified *since* a time you can do:
# cd
# touch -mt 10250000 /var/tmp/myref
# find . -xdev -type f -newer /var/tmp/myref
...which would find all files modified after 0000 hours on October 25.
See the manpages for 'find' and 'touch' for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2008 07:59 AM
тАО10-25-2008 07:59 AM
Re: How to list the files being modified now in a particular direcotory
Thanks for your reply. I have a file system called /testarch. This file system grows more than 85% frequently. So whenever this filesystem goes more than this benchmark i need to find the growing files under this direcotory and its subdirecotory.
Thanks,
Din
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2008 08:00 AM
тАО10-25-2008 08:00 AM
Re: How to list the files being modified now in a particular direcotory
-R
lists subdirectories recursively.
-t
sorts entries by time. By default, this option sorts the output by the modification times of files.
Please help to man ls " you find more"
Rgds,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2008 08:05 AM
тАО10-25-2008 08:05 AM
Re: How to list the files being modified now in a particular direcotory
the below command will help you find some large file under your mount point /testarch
find
after you find if you would like to house keep you can gzip / rm those files
schedule cron -job some thing like house keeping scripts
Rgds,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2008 08:16 AM
тАО10-25-2008 08:16 AM
Re: How to list the files being modified now in a particular direcotory
One more thing you can automate "script" which will send File system email alert :)
bdf | awk 'z[split($5,z,"%")-1]>70' | elm -s "Filesystem > 70%" xxx@xxx.xxx
if you have mail service configured
Thanks,
Best Regards,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2008 08:16 AM
тАО10-25-2008 08:16 AM
Re: How to list the files being modified now in a particular direcotory
Thanks for your reply. To get the large size file in a particular directory i can use the following command.
find /testarch | xargs ll -ld | sort -nrk5 | more
My requirement now is, i need to find a file which is growing without any limits in a particular file system.
Let's assueme /var filesystem is about to reach 100%. I need to find a particular file which is causing this effect.
Let's assume /var/adm/file1 is growing without any limit. I need to find this file1, and stop this growing further to avoid 100% of filesystem.
Hope you got my point.
Regards,
Din