I have a folder with 137795 files in it. I need to delete all of them. When I run rm * I get -bash: /bin/rm: Argument list too long. How do I get past this error?
|
|
|
As I can see you don't need to remove your dir , only files inside. So you can recreate it
or even delete only files inside
afair first one works faster. |
|||
|
|
|
Workaround #1:
Workaround #2:
|
|||||||||
|
|
Using
or
This will ignore anything in the current directory starting with |
|||||||||
|