[CentOS] ls and rm: "argument list too long"
Jussi Hirvi
greenspot at greenspot.fi
Fri Oct 17 12:57:43 UTC 2008
Yes, you are right - my example was misleading.
Thanks for the very easy solution (cd into directory). Have to try it the
next time.
- Jussi
Paul Bijnens (Paul.Bijnens at xplanation.com) kirjoitteli (17.10.2008 13:18):
> I believe you gave a bad example!
> In the command
>
> rm -rf /var/amavis/tmp
>
> the argument list is not at all "very long".
> However if you did:
>
> rm -rf /var/amavis/tmp/*
>
> then the argument list could be very long depending on the number of
> entries there are in the subdirectory.
--
Jussi Hirvi * Green Spot
Topeliuksenkatu 15 C * 00250 Helsinki * Finland
Tel. & fax +358 9 493 981 * Mobile +358 40 771 2098 (only sms)
jussi.hirvi at greenspot.fi * http://www.greenspot.fi
More information about the CentOS
mailing list