Commands Linux CentOS
Deleting Large Folder for which it was showing “bash: /bin/rm: Argument list too long”
June 22, 2018
0
, , ,

I was recently needed to delete a large number 10,000,00 files in one of folder running on Linux CentOS.

I was running the below command inside the folder

 rm -rf * 

but it was giving me below error message:

bash: /bin/rm: Argument list too long

I could not remove them, I take help of Linux  find . command. It is slow but it did work for me:

find . -ls -exec rm {} \;

About author

ZERIN

CEO & Founder (BdBooking.com - Online Hotel Booking System), CEO & Founder (TaskGum.com - Task Managment Software), CEO & Founder (InnKeyPro.com - Hotel ERP), Software Engineer & Solution Architect

How To Setup a Subdomain with SSL on Amazon Linux 2 AMI

I assume that you can login to Amazon Linux 2 AMI ...

Read more

MySQL “Order By Clause” Not Working with “SELECT DISTINCT and ORDER BY” after MySQL Update to 5.7

I have recently updated our MySQL server to MySQL ...

Read more

WHM:: PHP Mail is Not Working-Showing Its Disable

When your mail does not work, one example could be...

Read more

There are 0 comments

Leave a Reply

Your email address will not be published. Required fields are marked *