Re: ls and rm: "argument list too long"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



2008/10/17 Jussi Hirvi <greenspot@xxxxxxxxxxxx>:
> Since when is there a limit in how long directory listings CentOS can show
> (ls), or how large directories can be removed (rm). It is really annoying to
> say, for example
>
>    rm -rf /var/amavis/tmp
>
> and get only "argument list too long" as feedback.
>
> Is there a way to go round this problem?
>
> I have CentOS 5.2.
>
> - Jussi
try something like:
for i in /var/amavis/tmp/*
do
    rm -rf $i
done

Laurent
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux