Linux system safely delete files skills

  
                

When using a computer, we hope to recover important files that have been accidentally deleted. It is true that most of the data can be recovered through some effort. But on the other hand, we don't want something that involves personal privacy to be restored. In the Linux system, users use the rm command to delete data, but in this way, the hacker can use various software to easily recover the deleted data. Data can be safely deleted only with a few tools.

Let's look at how safe and completely delete files from your Linux system or folder. The tools mentioned below can completely delete data, so those recovery tools find it difficult to find traces of real data and then recover it.

1.Secure-Delete

Secure-Delete is a collection of tools for the Linux operating system that provide advanced technical support for permanently deleting files. Once Secure-Delete is installed on various Linux systems, the following four commands are provided:

srm smem sfill sswap

Run the following command in the Ubuntu terminal to install this tool: br>

sudo apt-get install secure-delete

run RHEL, Fedora or CentOS command to install the tool follows:

sudo yum install secure-delete

“srm” command works like the "rm" command, but it is more than just deleting a file. It first rewrites the file several times with some random data and then completely deletes the file. The syntax of this command is quite simple, just specify the file or directory to be deleted, and then it will be responsible for this task.

sudo srm /home/aun/Documents/xueo/1.png

"sfill" Detects the space marked as free or available in the specified partition or directory, then uses itself The algorithm is populated with some random data. Therefore it guarantees that there are no files or folders that can be recovered on this partition.

sudo sfill /home

The "sswap" command is used to safely clear your swap partition. The swap partition is used to hold the data of the running program. First we need to run the following command to find your swap partition.

cat /proc/swaps

The following is an example of the output of the above command:

aun@eagle:~$ cat /proc/swaps

FilenameTypeSizeUsedPriority< Br>

/dev/sda5 partition 208486071216-1

From now on, you can see which partition your swap partition is set to, and then safely clean it using the following command. Replace the "/dev/sda5" section with your swap partition name.

sudo sswap /dev/sda5

“smem” Used to clean up the contents of the memory, although the contents of the random access memory (RAM) will be cleaned up when the system is restarted or shut down. , but some traces of data will remain in memory. This command provides a secure memory cleanup by simply running the smem command in the terminal.

smem
Previous12Next Total 2 Pages

Copyright © Windows knowledge All Rights Reserved