In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the Linux system security delete file tools, the article is very detailed, has a certain reference value, interested friends must read it!
Secure-DeleteSecure-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 terminal of ubuntu to install this tool:
Sudo apt-get install secure-delete
Secure delete
Run the following command in RHEL,Fedora or Centos to install the tool:
The sudo yum install secure-delete "srm" command works like the "rm" command, but it doesn't just delete the file, it first rewrites the file several times with some random data, and then deletes the file completely. The syntax of this command is quite simple, just specify the file or directory to delete, and then it will take care of the task.
Sudo srm / home/aun/Documents/xueo/1.png "sfill" detects space marked as free or available in a specified partition or directory, and then uses its own algorithm to fill it with some random data. So it ensures that there are no files or folders that can be recovered in this partition.
The sudo sfill / home "sswap" command is used to safely clear your swap partition. Swap partitions are used to store data for running programs. First, we need to run the following command to find your swap partition.
Cat / proc/swaps is an example of the output of the above command:
Aun@eagle:~$ cat / proc/swapsFilename Type Size Used Priority/dev/sda5 partition 2084860 71216-1 from now on, you can see which partition your swap partition is set on, and then use the following command to safely clear it. Replace the "/ dev/sda5" section with your swap partition name.
Sudo sswap / dev/sda5 "smem" is used to clean up the contents in memory. Although the contents of random access memory (RAM) are cleaned when the system is rebooted or shut down, some traces of data remain in memory. This command provides secure memory cleanup by simply running the smem command on the terminal.
The smemShred "shred" command destroys the contents of a file or folder in an unrecoverable way. It uses randomly generated data patterns to continuously overwrite files, so it is difficult to recover arbitrary destroyed data, even if hackers or thieves use high-level data recovery tools or devices. Shred is installed by default in all Linux distributions, and if you want, you can find its installation directory by running the following command:
Aun@eagle:~$ whereis shredshred: / usr/bin/shred / usr/share/man/man1/shred.1.gz use the shred tool to run the following command to delete the file:
Shred / home/aun/Documents/xueo/1.png runs the following command using shred to delete any partition and replace the partition name with the partition you expect.
Shred / dev/sda5Shred rewrites data 25 times with random content by default. If you want it to rewrite the file more times, you can use the "shred-n" option to simply specify the number of times you want.
Shred-n 100 filename if you want to truncate or delete files after rewriting, use the "shred-u" option:
The command shred-u filenamedd was originally used for disk cloning. It is used to copy a partition or disk to another partition or disk. But it can also be used to safely clear the contents of a hard disk or partition. Run the following command to rewrite your current data with random data. You do not need to install the dd command, which is already included in all Linux distributions.
Sudo dd if=/dev/random of=/dev/sda you can also overwrite the contents of a disk or partition by simply replacing everything with "zero".
Sudo dd if=/dev/zero of=/dev/sdaWipeWipe was originally developed to safely erase files from magnetic media. This command-line tool uses a special pattern to write files repeatedly. It uses the fsync () call and / or the O_SYNC bit to force access to the disk and uses the Gutmann algorithm to write repeatedly. You can use this command to delete the contents of a single file, folder, or entire disk, but using the wipe command to delete the entire disk mode takes a lot of time. In addition, it is quite easy to install and use this tool.
Run the following command from the terminal of ubuntu to install wipe.
Sudo aptitude install wipe
Wipe Linux
Install Wipe in Redhat Linux,Centos or Fedora using the following command:
Once sudo yum install wipe is installed, run the following command in the terminal to get a complete list of available options:
Man wipe deletes any file or directory:
Wipe filename runs the following command to safely remove the tmp partition:
Wipe-r / tmp uses the following command to delete the contents of the full partition (replace the partition name with the partition you want).
Wipe / dev/sda1 above are all the contents of this article entitled "what are the Linux system Security Delete File tools?" Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.