- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Can't Remove files in a tmp directory with MAN...
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
12-17-2004 02:09 AM
12-17-2004 02:09 AM
sh: /usr/bin/rm: arg list too long
When I rm -rf the directory, there are so many files that the rm command just runs forever - (hours ) without getting ahead of the additions to the tmp dir.
Any ideas on how to quickly remove a directory that has many(i don't know how many) files?
thanks - John
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2004 02:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2004 02:19 AM
12-17-2004 02:19 AM
Re: Can't Remove files in a tmp directory with MANY files
Pete's answer will do the trick for you now, but, you need to determine just what's loading up the /tmp directory. It should *solely* be the domain of the OS - NOT - application SW nor users. They should be using /var/tmp.
If you don't already have the lsof utility, get it, install it & use it to determine just what process(es) are placing those files. It could also turn out to be a runaway normal OS function, but the bottom line is that this is indicative of a problem or misconfiguration.
My $0.02,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2004 02:26 AM
12-17-2004 02:26 AM
Re: Can't Remove files in a tmp directory with MANY files
Is this system 10.20
Check out this link below,
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=765004
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2004 02:32 AM
12-17-2004 02:32 AM
Re: Can't Remove files in a tmp directory with MANY files
Yes the solution from Pete is working - ie I am gaining freespace faster than I am losing it. And yes - Jeff, I am looking into the cause of the inserts to this tmp dir - it (tmp)is an application dir, and seems to be running away with itself. I know what should be writing to the dir - but cannot yet explain why I am getting so many fles written to it yet. I run a cron to delete files daily, but obviously something else ia at play here.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2004 02:09 AM
12-23-2004 02:09 AM
Re: Can't Remove files in a tmp directory with MANY files
John