Monday, May 19, 2008

Argument list too long error

I was trying to view the contents of a large growing directory used by Sendmail (/var/spool/mqueue). When I tried to run an ls or tar the contents, I kept getting the error: Argument list too long.

I found this very helpful reference to circumvent this issue at the following URL:
http://www.cyberciti.biz/faq/argument-list-too-long-error-solution/

Also here is another explanation:
http://www.linuxjournal.com/article/6060