/bin/rm -rf *
/bin/rm: Argument list too long.
find . -type f -delete
The find command is much quicker at listing files from a directory, and newer versions of "find" have -delete built in, which will allow you to remove files very quickly.perl -e 'for(<*>){((stat)[9]<(unlink))}'
to delete all files in the current directory. I don't believe it knows what the difference is between a file and a directory, so if you have sub-directories, it will probably throw some errors, but in theory, shouldn't remove them.