shred - cli tool

Antivirus, forensics, intrusion detection, cryptography, etc.
Post Reply
Message
Author
labbe5
Posts: 2159
Joined: Wed 13 Nov 2013, 14:26
Location: Canada

shred - cli tool

#1 Post by labbe5 »

http://brunolinux.com/02-The_Terminal/Shred.html

Shred is a real powerful command . . . . much better then just deleting-- it shreds a file, or wipes a partition, so that absolutely no recovery is possible ( even those businesses specialized in data-recovery will not be able to get it back.

shred a file :
shred -n 50 -z -u secret.txt
The -n 50 means that the file "secret.txt" will be overwritten 50 times. The -z means add a final overwrite with zeros to hide the shredding. The -u makes sure the file is removed after shred is done with it.

shred a complete drive or partition :
# shred -n 50 -z /dev/hda

stemsee

#2 Post by stemsee »

Learnt something new here!

User avatar
8Geee
Posts: 2181
Joined: Mon 12 May 2008, 11:29
Location: N.E. USA

#3 Post by 8Geee »

That article is from 2004.I tried it in Kernel 3.4 (from 2014) Bash sez "command not found".

USELESS
Linux user #498913 "Some people need to reimagine their thinking."
"Zuckerberg: a large city inhabited by mentally challenged people."

User avatar
tallboy
Posts: 1760
Joined: Tue 21 Sep 2010, 21:56
Location: Drøbak, Norway

#4 Post by tallboy »

8Geee, what Puppy was that? I have used shred for many years. It is also part of BusyBox.
True freedom is a live Puppy on a multisession CD/DVD.

User avatar
8Geee
Posts: 2181
Joined: Mon 12 May 2008, 11:29
Location: N.E. USA

Late, but have answer

#5 Post by 8Geee »

Sorry for being late... 32-bit Slacko5.7-1686-nonPAE-4G (the original). However.... bash was updated in my spin to 4.1.17 due to the nasties a yr or so ago. The original BASH is 4.0.1(2) IIRC. The update had to be taken from Slackware 13.37... NOT 14.0

Regards
8Geee
Linux user #498913 "Some people need to reimagine their thinking."
"Zuckerberg: a large city inhabited by mentally challenged people."

Post Reply