Introduction to deleteperm Command
After the successful launch of delete and undelete command, we have created another command known as deletperm.
How to use this command ?
[nglinux@nglinux root]$ deleteperm newfile You are running this command with nglinux The file/dir is owned by root, you can't remove this file/dir. Exiting, run the command with sudo or remove another file owned by you. [nglinux@nglinux root]$ sudo deleteperm newfile You are running this command with root This program PERMANENTLY REMOVES ALL DATA DATA CANT BE RECOVERED AFTER REMOVING THE FILE WITH THIS COMMAND. All hard links & snapshots of the specified file/dir will automatically gets corrupted since it changes the data blocks referred by the file and then removes the file Do you still want to continue (To PERMANENTLY remove THE FILE) ? Press y to continue or any other key to quit. y Removing specified file newfile... newfile removed successfully. Now erasing the data blocks to permanently remove the file. 1+0 records in 1+0 records out 4096 bytes (4.1 kB) copied, 0.00645496 s, 635 kB/s Blocks are zeroed successfully, as a safety measure shredding the file blocks again with zero and random data... shred: newfile: pass 1/4 (random)... shred: newfile: pass 2/4 (random)... shred: newfile: pass 3/4 (random)... shred: newfile: pass 4/4 (000000)... Removing system cache.. vm.drop_caches = 3 SUCCESS !! File data blocks overwritten and file removed permanently [nglinux@nglinux root]$
How to install deleteperm command ?
Installing deleteperm is a single command away with just 9KB download.
Will hardly take a single minute to install.
[root@nglinux ~]# wget http://ngelinux.com/wp-content/uploads/2018/06/deleteperm_v1.0.tar.gz; \ tar -xvf deleteperm_v1.0.tar.gz; \ cd deleteperm_v1.0 ; \ ./install.sh --2018-06-03 16:45:21-- http://ngelinux.com/wp-content/uploads/2018/06/deleteperm_v1.0.tar.gz Resolving ngelinux.com... 184.108.40.206 Connecting to ngelinux.com|220.127.116.11|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 9170 (9.0K) [application/x-gzip] Saving to: `deleteperm_v1.0.tar.gz' 100%[====================================================================================================================================================================================>] 9,170 --.-K/s in 0s 2018-06-03 16:45:22 (517 MB/s) - `deleteperm_v1.0.tar.gz' saved [9170/9170] deleteperm_v1.0/ deleteperm_v1.0/deleteperm deleteperm_v1.0/install.sh deleteperm_v1.0/manpage /usr partition exists..... OK /tmp partition exists..... OK /bin/rm exists..... OK /bin/find exists..... OK /usr/sbin/filefrag exists..... OK /bin/dd exists..... OK ALL DEPENDENCIES SATISFIED, NOW INSTALLING deleteperm COMMAND. Copying deleteperm command to /bin directory.... `deleteperm' -> `/bin/deleteperm' deleteperm command is installed successfully on your system. Now remove your files and directories permanently using deleteperm command. Installing man page to your system... `manpage' -> `/usr/local/man/man1/deleteperm.1' SUCCESS !! [root@nglinux deleteperm_v1.0]#