Permanently Delete Sensitive Files in Ubuntu
When you delete a file, the data are not destroyed your hard drive. They can easily be recovered with the right tools. To delete sensitive data you can use the Shred of Ubuntu that allows you to write random data several times on the files are deleted to make sure that they will never be restored. To use it easily, you can add to the menu that appears after right clicking on a file.
1. Open a Terminal window by clicking on the Applications menu, click Accessories then click Terminal.
2. Enter the command sudo apt-get install nautilus-actions. Press Enter. Enter your password and click OK.
3. Once the package installed, close the Terminal window.
4. Click the System menu, then click on System Preferences actions Nautilus.
5. Click the Add button.
# Enter the Delete command in the final wording.
# Then gtk-dialog-warning icon in the field.
# In the Path field, enter the command shred.
# In the Settings field, enter the command-f-u-v-z% M.
# Open the tab Conditions.
# Select both and check the box Appears if selection contains multiple files or folders.
# Finally, click the OK button and then click Close.
# Open a Terminal window and enter the command nautilus-q. Confirm and enter the command to restart the nautilus file manager.
# Now when you click the right mouse button on a file or folder in the file browser, you can use the delete command from the menu that appears to remove it safely.
Shred Commands
Shred is a shell command that allows you to securely erase any files. It overwrites the specified file(s) repeatedly, in order to make it harder for even very expensive hardware probing to recover the data.
Shred is included in many Linux distributions, thus you can use it immediately, without any further installation.
To shred a file,
shred -f -v -z -u file.txt
where
-f: change permissions to allow writing if necessary
-v: verbose, to display the progress
-z: add a final overwrite with zeros to hide shredding
-u: truncate and remove file after overwriting
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment