How Can We Permanently Delete Sensitive Files in Ubuntu Linux ?
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.
- Open a Terminal window by clicking on the Applications menu, click Accessories then click Terminal.
- Enter the command sudo apt-get install nautilus-actions. Press Enter. Enter your password and click OK.
- Once the package installed, close the Terminal window.
- Click the System menu, then click on System Preferences actions Nautilus.
- 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.
Re: How Can We Permanently Delete Sensitive Files in Ubuntu Linux ?
You may also be interested to know you can remove non-empty (or empty) folders with
rm -r FOLDERNAME
Careful, though, because it won't ask to confirm first. Don't accidentally erase your /home folder, for example. For confirmation use:
rm -r -i FOLDERNAME
Re: How Can We Permanently Delete Sensitive Files in Ubuntu Linux ?
You can also use 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
Re: How Can We Permanently Delete Sensitive Files in Ubuntu Linux ?
Quote:
Originally Posted by
Conrad
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.
- Open a Terminal window by clicking on the Applications menu, click Accessories then click Terminal.
- Enter the command sudo apt-get install nautilus-actions. Press Enter. Enter your password and click OK.
- Once the package installed, close the Terminal window.
- Click the System menu, then click on System Preferences actions Nautilus.
- 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.
i got stuck with this bit - Enter the Delete command in the final wording. :huh:
Re: How Can We Permanently Delete Sensitive Files in Ubuntu Linux ?
To delete a file or folder perform the following steps:
- Select the file or folder that you want to delete.
- Choose Edit->Delete. Alternatively, right-click on the file or folder, then choose Delete
also try this
rm <filename> to remove files
apt-get remove <package name> to uninstall packages