
With your favourite text editor,
create a file ~/.gnome2/nautilus-scripts/shred
with the following contents:
#!/bin/bash
# "Shredder" secure file delete for Nautilus
# Distributed under the terms of GNU GPL version 2 or later
#
# Dependency : zenity
#
# Please note that `shred' relies on a very important assumption:
# that the filesystem overwrites data in place. This is the traditional
# way to do things, but many modern filesystem designs do not satisfy
# this assumption.
#
# Exceptions exist, and are noted in shred's info manual.
# Type 'info shred' from a prompt to see the list.
SHRED_PATH=/usr/bin # Path to shred binary.
if dialog=`zenity --question --text "Are you sure you want to shred $1?"`
then
$SHRED_PATH/shred -zu "$1"
fi
Then, make it executable with:
chmod 755 ~/.gnome2/nautilus-scripts/shred
Now, if you right-click on a file, there will be a "shred" option under Scripts.
Comments
Post new comment