- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Max arguments for rm command
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
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
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-27-2011 09:34 PM
12-27-2011 09:34 PM
Re: Max arguments for rm command
>the next best is to use command lines that will work and avoid those that fail or take enormous amounts of time (and disk I/O).
What's why plan B should be used.
>the first commands to avoid are simple ls and ll commands. The result will scroll off the top of your screen,
You can always redirect the output.
>If you need to remove all the files in a directory (with no subdirectories), then use rm -r mydirname and *not* rm mydirname/*
Right. And copy the permissions/owners if needed to recreate the directory.
>If the directory has subdirectories, you'll have to be more creative by breaking the filenames into manageable groups.
Plan B doesn't have any issues with this, unless you don't want to remove subdirectories. And then with the appropriate -prune, that will work too.
- « Previous
-
- 1
- 2
- Next »