Comment on the Ubuntu file security deletion Tool

Source: Internet
Author: User
Deleting a file or reformatting a disk does not damage sensitive data, and the data can be recovered even if it is deleted. It is a good thing to completely delete some useless data, but it is dangerous to delete financial data, bank account passwords, or company information that cannot be completely deleted, this article describes some tools that can safely delete files in the Linux Ubuntu operating system. Although there are some restrictions on the Shred command, the shred command can be very effective to completely delete the file, making it difficult or unrecoverable. Shred is

Deleting a file or reformatting a disk does not damage sensitive data, and the data can be recovered even if it is deleted. It is a good thing to completely delete some useless data, but it is dangerous to delete financial data, bank account passwords, or company information that cannot be completely deleted, this article describes some tools that can safely delete files in the Linux Ubuntu operating system.

Shred

Although there are some restrictions on the shred command, the shred command can be used to completely delete the file, making it difficult or unrecoverable. Shred deletes the file in this way: the file is overwritten repeatedly in the data mode to maximize the destruction. This makes it difficult to restore the data even if a high-sensitivity data recovery device is used.

Using the rm command to delete a file does not actually destroy the data. It only destroys the index with the file location in the column so that the data block of the file can be reused. Therefore, files deleted using the rm command can be easily recovered using special devices or commands, provided that the database released by the file has not been reused. However, if a dynamic system is completely hard drive (HDD), the released space can only be restored within several minutes or seconds.

Shred statement

Shred [option (s)] file (s) _ or_devices (s)

Available options

-F,-force-change permission to allow write (if necessary)

-N,-iterations = N-Rewrite N times instead of the default (25) times

-S,-size = N-splits the file into many bytes (suffixes such as K, M, and C can be used)

-U,-remove-truncates and removes files after rewriting.

-V,-verbose-display process

-X,-exact-do not round file sizes up to the next full block

-Z,-zero-add a final overwrite with zeros to hide shredding

-Shred standard output

-Help-display help and exit

-Version-output version information and exit

Shred example

1) the following commands can be used to safely delete three folders: file1, file2, and file3:

Shred file1 file2 file3

2) the following command will delete the data in the seventh partition of the first HDD:

Shred/dev/hda7

3) You can use the following commands to erase the path of the file system created in the first disk's floppy disk. This command takes 20 minutes to erase "1.44MB" (actually 1440KiB) floppy Disk:

Shred-verbose/dev/fd0

4) to delete the data of the selected partition on the hard disk, run the following command:

Shred-verbose/dev/sda5

Add shred to the Nautilus menu of Ubuntu

First, run the following command on the terminal to install the nautilus-actions data packet:

Sudo aptitude install nautilus-actions

Now open Nautilus Actions Configuration: System-> Preference-> Nautilus Actions Configuration

After opening, you will see a similar window and click Add.

Enter the following information:

Tooltip: shred utility to securely erase files

Icon: gtk-dialog-warning

Path: shred

Parameters:-f-u-v-z % M

Click the Conditions entry, select "Only files" on "Appears if selection contains" (you can also select files and folders), and select "Appears if selection has multiple files or folders ", click OK.

After adding, you will see the following window. Click Close.

Open the terminal and run the following program to update nautilus:

Nautilus-q

Nautilus

This will open the nautilus window. Right-click any file and you will be able to see the shred command option in the menu.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.