[Cialug] Unable to remove a directory in RedHat7
Zachary Kotlarek
zach at kotlarek.com
Fri Aug 22 15:29:26 CDT 2014
On Aug 22, 2014, at 12:51 PM, Ron Houk <houk.ron at gmail.com> wrote:
> find . -type d -mindepth 1 -maxdepth 1 -exec rm -rf {} \;
FYI: Most `find` implementations include the -delete option, which avoids the need to -exec anything in this case.
The -empty option can also be useful.
Zach
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2749 bytes
Desc: not available
URL: <http://cialug.org/pipermail/cialug/attachments/20140822/b34dac0b/attachment-0001.bin>
More information about the Cialug
mailing list