- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- how to delete an entry(a directory) with too many ...
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-03-2006 08:35 PM - last edited on тАО10-22-2012 07:50 PM by Maiko-I
тАО01-03-2006 08:35 PM - last edited on тАО10-22-2012 07:50 PM by Maiko-I
my server type is HP C3600 and the unix version HP_UX 10.20
the result of command ll for tis entry
drwxrwxr-x 2 hp3070 hp3070 3854336 Jan 4 17:02 alarm
in directory
/var/hp3070/qm/logdata/alarm,there are very large number of files in it.
I want to delete them by command
rm -rf *
a message appears on the screen like
sh: /bin/rm: The parameter list is too long.
if I use command
rm -rf 1:05060*
I can delete some files.
because the files are too many,I will delete many times to delete these files.
I wonder who can give me a help on delete these files in a short time.
thank you.
P.S. This thread has been moved from HP-UX Technical Documentation to HP-UX > languages - HP Forums Moderator
Solved! Go to Solution.
- Tags:
- Arg list too long
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-03-2006 08:44 PM
- Tags:
- find
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-03-2006 08:52 PM
тАО01-03-2006 08:52 PM
Re: how to delete an entry(a directory) with too many files in it
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-03-2006 08:52 PM
тАО01-03-2006 08:52 PM
Re: how to delete an entry(a directory) with too many files in it
# cd /var/hp3070/qm/logdata/alarm
# find . -name "1:05060*" | xargs rm
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2006 12:00 AM
тАО01-04-2006 12:00 AM
Re: how to delete an entry(a directory) with too many files in it
Use find for this.
find /var/hp3070/qm/logdata/alarm . -print -exec rm {} \;
HTH,
Prabu.S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2006 01:32 AM
тАО01-04-2006 01:32 AM
Re: how to delete an entry(a directory) with too many files in it
good that provided suggestions have solved your problem. Anyway that message
"The parameter list is too long."
is not a 'rm' command problem but an environment limit on the shell for HP-UX 10.20 (I suppose you are using sh-posix at this time).
That should be solved by enabling the following kernel parameter:
large_ncargs_enabled
This is a limitation of 10.20 only since it is built-in in 11.X, so you won't see it on 11.X systems.
HTH.
Best regards,
Fabio