- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Deleting CORE files (temporarily as root)
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
тАО01-14-2011 09:12 AM
тАО01-14-2011 09:12 AM
find / -name core -type f -prune -exec rm -f {} \;
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2011 09:21 AM
тАО01-14-2011 09:21 AM
Solutionhttp://www.gratisoft.us/sudo/download.html
user once configured types sudo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2011 10:19 AM
тАО01-14-2011 10:19 AM
Re: Deleting CORE files (temporarily as root)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2011 10:32 AM
тАО01-14-2011 10:32 AM
Re: Deleting CORE files (temporarily as root)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2011 02:33 PM
тАО01-14-2011 02:33 PM
Re: Deleting CORE files (temporarily as root)
is a very brute force and disk intensive method to get rid of core files. Why not eliminate all core files with:
ulimit -Sc 0
Put this into /etc/profile and now all your user-created core files will no longer be created. If there are application-created core files, put the ulimit -0 Sc command inside the startup scripts.
However, if you are running 11.31, you can use the coreadm command to eliminate the core files. This all assumes that you cannot fix the failures causing the core files.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2011 12:15 AM
тАО01-15-2011 12:15 AM
Re: Deleting CORE files (temporarily as root)
Not sure why you have -prune?
You can speed up the rm by using -exec ... +
find / -name core -type f -exec rm -f {} +