Tagged Questions
5
votes
3answers
344 views
How can I delete a folder with lots of subfolders fast?
I have a folder with 266778 subfolders. How can I delete it?
I have tried
cd ~/.local/share/Trash/
sudo rm -rf *
but it takes much time. After 1 minute 25 seconds real time and 0.072 seconds user ...
6
votes
6answers
328 views
How to prevent a mistaken rm -rf for specific folders?
I think pretty much people here mistakenly 'rm -rf'ed the wrong directory, and hopefully it did not cause a huge damage.. Is there any way to prevent users from doing a similar unix horror story?? ...
2
votes
2answers
1k views
undo rm -r, restore data
I was playing around with zip and accidentally deleted my /home/ folder (i wanted to delete home/ which got created by unzipping an archive).
I used rm -r /home/instead of rm -r home/ as root...
Is ...