Deleting files in Linux – Argument list too long

Deleting files in Linux – Argument list too long

When  you’re trying to delete  large number of files, you may have error: Argument list too long

As solution you can use command:

# find . -type f -print -delete

Next command also will show many files will be deleted and then how long  it takes to delete them:

# ls -1 | wc -l && time find . -type f -delete

arstech

Leave a Reply