giovedì 8 settembre 2011

How to remove a large number of files in a directory

If you want to remove a large number of files with the "rm" command you probably will encounter this error:

"too long argument list"


We can solve this problem by using the find command instead as follows:

find . -name '*' | xargs rm



Nessun commento:

Posta un commento