Hi All,
I'm getting this error when running the command "ls *" or "rm *":
"ksh: /usr/bin/ls: 0403-027 The parameter list is too long."
Yip, you have more than 2048 files (I think that's the amount) in the directory. IBM Certified Specialist - MQSeries
IBM Certified Specialist - AIX 5 pSeries System Administration
You will have to get creative to get around this one. Happens to me occasionally. I try to do something besides "ls *", such as just "ls". The shell expands the asterisk into a list, so you can probably get by that in a ls just by omitting the *. When you do a "ls" I think it just streams the dir listing to STDOUT, but I could be wrong.
Another solution is to use the find command to send the list of files to ls. Use this:
Code:
find . -ls
This way you can also control the RE of which files to display. Using the -name attribute:
Code:
find . -name "*.log" -ls
There are a ton more attributes by which you can filter using find. It is worth it to know this command. Einstein47 (Love is like PI - natural, irrational, endless, and very important.)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.