HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- find and exec
Operating System - HP-UX
1827809
Members
1932
Online
109969
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
Forums
Discussions
Discussions
Discussions
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
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
03-06-2009 06:51 PM
03-06-2009 06:51 PM
find and exec
Hi All,
I have been running a find command with exec rm ..for a files owned by particular user.but the files are too many as 150,000 .it really takes much longer for this command to complete.
both diskactivity and sar oout put shows very lil activity.any idea would be appreciated
I have been running a find command with exec rm ..for a files owned by particular user.but the files are too many as 150,000 .it really takes much longer for this command to complete.
both diskactivity and sar oout put shows very lil activity.any idea would be appreciated
Learning ...
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2009 07:01 PM
03-06-2009 07:01 PM
Re: find and exec
There's not a whole lot you can do.
A way to get a little more efficiency would be to do
# find /dir -type f -user username -exec rm -f {} +
Note the '+'. This will allow the exec to be more efficient by grou[ing files to delete rather than just doing one at a time.
Still, 150,000 files will take a while.
A way to get a little more efficiency would be to do
# find /dir -type f -user username -exec rm -f {} +
Note the '+'. This will allow the exec to be more efficient by grou[ing files to delete rather than just doing one at a time.
Still, 150,000 files will take a while.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2009 07:07 PM
03-06-2009 07:07 PM
Re: find and exec
this problem has started recently .no much difference in the counts of the files ..problem started last week.
anyways thanks for the reply and any more idea is welcome
thanks
anyways thanks for the reply and any more idea is welcome
thanks
Learning ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2009 08:16 PM
03-06-2009 08:16 PM
Re: find and exec
If you can control where the files are located, have them on a separate filesystem, then simply:
umount
newfs
mount
Takes a matter of minutes at most.
umount
newfs
mount
Takes a matter of minutes at most.
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.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP