Wednesday, August 9, 2017

/bin/rm: Argument list too long error

Today I found the following error returned by linux

[root@server1 cur]# rm *
-bash: /bin/rm: Argument list too long

After quick searching around I found how to remove files in case if there are too many files in the current directory:

find . | xargs rm

That allowed me to delete all files in that dir.

No comments:

Post a Comment