I
I
Igor2014-03-06 11:21:00
bash
Igor, 2014-03-06 11:21:00

How to remove a directory without using rm -r?

How can a non-empty directory be deleted without using `rm -r`, also without using find -delete?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vlad Zhivotnev, 2014-03-06
@mmilky

mkdir /tmp/trash/; sudo mount -t tmpfs tmpfs /tmp/trash/; mv blah/ /tmp/trash/; sudo umount /tmp/trash/
Alternatively, in python script:
https://stackoverflow.com/questions/6996603/how-do...
Or in any other language.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question