RE: Command failure: Too Many Files (rm, ls, tar)

"Browder, Tom" <[email protected]>
Newsgroups gmane.comp.gnu.utils
Message-ID <F4AAE2E381F0624BB8F513C1E9880FB95EC25A@newman.fwb.internal.srs.com>
>-----Original Message-----
>From: Bob Proulx [mailto:[email protected]] 
>Sent: Tuesday, April 15, 2008 11:56
>To: Browder, Tom
>Cc: [email protected]
>Subject: Re: Command failure: Too Many Files (rm, ls, tar)
>Browder, Tom wrote:
>> Last week I started getting errors indicating there were too many 
>> files for the command (rm *, ls *, tar cvzf xfer.tgz *) to continue.
...
>You are running into the kernel's ARG_MAX limitation.  Please 
>see this reference for more information.
...
>For your 'tar' case you can avoid the argument expansion 
>entirely simply by giving '.' as the argument.
>
>  tar cvzf xfer.tgz .

Hm, when I try this the tgz archive gets sucked back into itself.

-Tom
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.