![]() ![]() Why did find delete all those files? Did I put -delete in the wrong spot? It was probably working on my giant Downloads folder that I put nearly everything in. Once I realized it was trying to delete my symlinks for some reason, I punched Ctrl C and saved about half the data.ĭocuments, Pictures, and Music are toast. maxdepth 255 -delete -name \*DS_Store\*įind: cannot delete `./Documents': Not a directoryįind: cannot delete `./Pictures': Not a directoryįind: cannot delete `./Music': Not a directory I then added the -delete flag to cause find to remove the files it found: $ sudo find -L. Downloads/ALAC/Jeff Van Dyck - Assault Android Cactus OST/.DS_Store Downloads/ALAC/Jeff Van Dyck - Assault Android Cactus OST/._.DS_Store Downloads/USBHDD1/backups/Storage/.DS_Store Downloads/USBHDD1/backups/Storage/._.DS_Store Downloads/USBHDD1/backups/OriginalMusic/FLAC/.DS_Store Downloads/USBHDD1/backups/OriginalMusic/.DS_Store Downloads/USBHDD1/backups/OriginalMusic/._.DS_Store Downloads/USBHDD1/backups/ALAC/.DS_Store Downloads/USBHDD1/backups/ALAC/Jeff Van Dyck - Assault Android Cactus OST/.DS_Store Downloads/USBHDD1/backups/ALAC/Jeff Van Dyck - Assault Android Cactus OST/._.DS_Store Downloads/USBHDD1/backups/ALAC/._.DS_Store I ran the following to make sure that find was targeting the right files: $ sudo find -L. ![]() Some of the folders are owned by system users (e.g.In my home folder to the mounting point, hence the -L. ![]() I have a hard drive attached to my raspberry pi, with some symlinks._.DS_Store files that my MacBook's Finder was barfing all over my Raspbian samba share. I was wondering if anyone more experienced could explain where I went wrong. I'm not too familiar with find and managed to delete a ton of files by accident. ![]()
0 Comments
Leave a Reply. |