- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ls listing problem
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
01-31-2007 12:59 AM
01-31-2007 12:59 AM
hp-ux 10.20 for "ls" when listing lots of
files.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2007 01:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2007 01:09 AM
01-31-2007 01:09 AM
Re: ls listing problem
do you mean you get "Arguments list too long" ?
See Dave's comment in:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=354506
"large_ncargs_enabled 1
And recompile the kernel by hand."
If you listing lots and lots of files to screen, and you do not have the "arguments list too long", re-direct the list into a file, which may prove quicker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2007 02:13 AM
01-31-2007 02:13 AM
Re: ls listing problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2007 02:23 AM
01-31-2007 02:23 AM
Re: ls listing problem
echo ls *
You will see that * is a special character for the shell and is automatically replaced with a list of all the filenames in the current directory. If this list is more than several megs long, the error message is produced (not from ls) by the shell. The maximum line length in bytes is:
getconf ARG_MAX
Now if you have tens of thousands of files in a single directory, you will ALWAYS run into this limit. Read the man page for xargs and look at ways to reduce the total line length when using shell globbing characters. Note that large_ncargs_enabled will increase the line length but no matter how long you make it, there can be a list longer than that.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2007 05:30 AM
01-31-2007 05:30 AM
Re: ls listing problem
not use "ls" and to use something like "find"
is not an option now. It's coded everywhere.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2007 11:59 AM
01-31-2007 11:59 AM
Re: ls listing problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2007 03:37 PM
01-31-2007 03:37 PM
Re: ls listing problem
Instead of using ls pattern, you might be able to just replace this by ls | grep RE-pattern.
That might be easier than find.