barngre.blogg.se

Secure empty trash mac terminal sierra
Secure empty trash mac terminal sierra







secure empty trash mac terminal sierra

I am on Mac OS X 10.6.8 Snow Leopard, backing up my drive before the impending 10.7 Lion release. so that's why I resorted to using root-mode Finder. I didn't have much luck with chown or cp under sudo either. In my case, I wanted to backup and delete my Carbon Copy Cloner archived files (created in incremental backups), as just copying and pasting the "_CCC Archives" folder to a separate location threw up a load of errors while using Finder in normal user mode. The asterisk wildcard not working might be a pain if you have many files and/or folders in the root Trash of a mounted volume.ĬAUTION: Using Finder in root mode is definitely ill-advised for general use use it in special circumstances. Which maps out to this, I guess: sudo rm -rf /Volumes//.Trashes/0/

secure empty trash mac terminal sierra

(Perhaps it was due to the double quotation marks at the ends perhaps it needed the backslash format as demonstrated below.) Instead, I had to manually add the folder name in my case: sudo rm -rf /Volumes/Backup\ of\ Macintosh\ HD/.Trashes/0/_CCC\ Archives So, srm -mz filename will do a DoD compliant erase and. There are two other options that Secure empty trash doesn't use: -m, -medium overwrite the file with 7 US DoD compliant passes (0xF6, 0x00, 0xFF, random, 0x00, 0xFF, random) -z, -zero after overwriting, zero blocks used by file. You will hear the trash emptying sound, but the trash does not get emptied.Īlso, when browsing Finder in root mode doesn't show the hidden files and folders, even if you have enabled this option in your own user account.įollowing Chealion's rm command with the asterisk at the end didn't seem to work for me. The new feature in Panther is the command /usr/bin/srm.

secure empty trash mac terminal sierra

If you need to empty the Trash of a mounted volume when using Finder in root mode (see ), it seems you can't just press Empty Trash in the Trash folder after pressing the icon (even ensuring the normal Finder isn't open).









Secure empty trash mac terminal sierra