Problem deleting files

Paul Schmehl pschmehl_lists at tx.rr.com
Wed Jul 4 00:20:29 UTC 2018


--On July 2, 2018 at 4:48:31 AM +0900 Yasuhiro KIMURA <yasu at utahime.org> 
wrote:

> From: Paul Schmehl <paul.schmehl at gmail.com>
> Subject: Problem deleting files
> Date: Sun, 01 Jul 2018 14:13:30 -0500
>
>> I have a problem with a directory full of files that I can't seem to
>> delete.
>>
>> rm * returns argument list too long. So does file *
>>
>> find . -type f -exec rm [] \; returns rm: []: No such file or
>> directory over and over again.
>
> Try following command.
>
> find . -type f -print0 | xargs -0 rm -f
>

It took more than 24 hours, but the files are all gone. Thank you for the 
useful suggestion.

Paul Schmehl, Retired
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
*******************************************
"It is as useless to argue with those who have
renounced the use of reason as to administer
medication to the dead." Thomas Jefferson
"There are some ideas so wrong that only a very
intelligent person could believe in them." George Orwell



More information about the freebsd-questions mailing list