'rm' Can not delete files

Modulok modulok at gmail.com
Wed Feb 8 01:46:57 UTC 2012


On 2/7/12, Коньков Евгений <kes-kes at yandex.ru> wrote:
> # rm *
> /bin/rm: Argument list too long.
>
>
> in this directory about 25000 files,
> but actually there is only one argument to rm it is '*' sign.
>
> Why rm get list of all files in directore instead of deleting one by one?

If you're removing everything, can you just remove the directory and re-create
it? e.g:

    cd ..
    rm -rf foo
    mkdir foo

-Modulok-


More information about the freebsd-questions mailing list