Its quite possible that you face issues and getting the following error message while removing the files in bulk using the “rm” command:
[email protected] [/tmp]# rm -rf *
-bash: /bin/rm: Argument list too long
Then you can use the following “find | rm” command combination as given below in order get done this task :
find . -name ‘<pattern>’ | xargs rm
<patern> = Any matching file pattern that you want remove/delete.
Please fill in your email address to get most latest updates.