/bin/rm: Argument list too long

on October 11 | in Commands, Linux | by | with No Comments

Problem No #1

I was deleting files from our server having total file count more than 2000000. I was getting below warning.

/bin/rm: Argument list too long.

Solution:

# cd /source-directory/

# find . -type f -exec rm -fv {} ;

Problem No #2

Samba was also working on same server and from windows we are unable to delete that files. After troubleshooting found that, some commands of deletion via smb protocol in queue that got hangs. So after restarting of samba service, everything was fine.

Solution:

# service smb restart

 

2418 Total Views 2 Views Today
Pin It

related posts

Comments are closed.

« »