when using rm - "Argument list too long"

Discussion, tips and tricks for the different Unix flavors

when using rm - "Argument list too long"

Postby curlee » Wed May 03, 2006 12:51 pm

If you try to delete thousands of files with rm FreeBSD will return

"Argument list too long"

if you use the find command with the xargs tag it will delete all the files.

#find /path-to-directory -type f -print | xargs rm
curlee
Site Admin
 
Posts: 49
Joined: Wed May 03, 2006 12:01 pm

Return to BSD/Linux/Unix

Who is online

Users browsing this forum: No registered users and 1 guest

cron