Cleaning up /var

I was trying to clean up all files in:

Code:
/var/db/freebsd-update/files

But received the following error:

Code:
Helena# rm *
/bin/rm: Argument list too long

Could this be the reason?

Code:
Helena# ls | wc -l
  140680

The high number of files?
 
You could probaly also have done [cmd=]rm -rf /var/db/freebsd-update/files && mkdir /var/db/freebsd-update/files[/cmd] instead of piping 140680 file names to xargs and rm ;)
 
Back
Top