Another useful snippet ive been using alot of late, i.e. when rebuilding dev environments.
Sometimes rm -f is very slow. Heres what im doing instead
(cd /origin/openshift.local.etcd && find . -type d -delete)
(cd /origin/openshift.local.volumes && find . -type d -delete)
(cd /origin/openshift.local.config && find . -type d -delete)
sudo rm -rf /origin/openshift.local.config
sudo rm -rf /origin/openshift.local.etcd
sudo rm -rf /origin/openshift.local.volumes
I'm not sure *why* its so slow, but in any case, I've asked here
http://stackoverflow.com/questions/35301347/why-is-find-delete-faster-than-rm-f
We'll see soon enough :)
No comments:
Post a Comment